I can\'t seem to check if an object is a boolean easily. Is there something like this in Ruby?
true.is_a?(Boolean) false.is_a?(Boolean)
Ri
Simplest way I can think of:
# checking whether foo is a boolean !!foo == foo