Class: Object
- Inherits:
- BasicObject
- Defined in:
- lib/rh.rb,
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
322 323 324 |
# File 'lib/prc.rb', line 322 def boolean? self.is_a?(TrueClass) || self.is_a?(FalseClass) end |