Is the passed value a boolean?.
Is the passed value a boolean?
Is the value a boolean type?
false.is_a?(Boolean)
Parameters:
The class to check.
Returns:
If the other is a boolean.
Since:
1.0.0
16 17 18 19 20 21
# File 'lib/tiny_dyno/extensions/false_class.rb', line 16 def is_a?(other) if other == ::TinyDyno::Boolean || other.class == ::TinyDyno::Boolean return true end super(other) end