Module: BooleanClass::Conversion
- Included in:
- Object
- Defined in:
- lib/boolean_class/conversion.rb
Instance Method Summary collapse
-
#Boolean(value) ⇒ Boolean
Performs type conversion from anything to true/false.
Instance Method Details
#Boolean(value) ⇒ Boolean
Performs type conversion from anything to true/false
19 20 21 |
# File 'lib/boolean_class/conversion.rb', line 19 def Boolean(value) value ? true : false end |