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
337 338 339 |
# File 'lib/prc.rb', line 337 def boolean? self.is_a?(TrueClass) || self.is_a?(FalseClass) end |