Class: Object
- Inherits:
- BasicObject
- Defined in:
- lib/boolean.rb
Instance Method Summary collapse
-
#to_bool ⇒ true, false
Returns the typecasted value of this object.
Instance Method Details
#to_bool ⇒ true, false
Returns the typecasted value of this object. This would be @true@ for all objects except @false@ and @nil@, which type-cast to @false@.
66 |
# File 'lib/boolean.rb', line 66 def to_bool() true end |