class Object
Redefine Object
to add a boolean? function.
Public Instance Methods
boolean?()
click to toggle source
Simplify boolean test on objects
# File lib/prc.rb, line 337 def boolean? self.is_a?(TrueClass) || self.is_a?(FalseClass) end