[ruby] How to check if a Ruby object is a Boolean