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
This gem adds a Boolean class to Ruby with useful methods.
https://github.com/RISCfuture/boolean
Use:
require 'boolean'
Then your
will work exactly as you expect.