Module: Kernel
- Defined in:
- lib/a_types/core_ext/boolean.rb
Overview
Adds a Boolean cast method.
Instance Method Summary collapse
-
#Boolean(obj_to_cast) ⇒ true, false
Casts the given object to its boolean representation.
Instance Method Details
#Boolean(obj_to_cast) ⇒ true, false
Casts the given object to its boolean representation.
112 113 114 |
# File 'lib/a_types/core_ext/boolean.rb', line 112 def Boolean(obj_to_cast) obj_to_cast.to_bool end |