Class: Object
- Inherits:
- BasicObject
- Defined in:
- lib/prc.rb
Overview
Redefine Object to add a boolean? function.
Instance Method Summary collapse
-
#boolean? ⇒ Boolean
Simplify boolean test on objects.
Instance Method Details
#boolean? ⇒ Boolean
Simplify boolean test on objects
233 234 235 |
# File 'lib/prc.rb', line 233 def boolean? self.is_a?(TrueClass) || self.is_a?(FalseClass) end |