Class: Cascade::ComplexFields::Boolean
- Inherits:
-
Object
- Object
- Cascade::ComplexFields::Boolean
- Defined in:
- lib/cascade/complex_fields/boolean.rb
Constant Summary collapse
- TRUE_VALUES =
['True', 'true', 'x', '+', true].freeze
Instance Method Summary collapse
Instance Method Details
#call(value) ⇒ Object
8 9 10 |
# File 'lib/cascade/complex_fields/boolean.rb', line 8 def call(value) TRUE_VALUES.include?(value) end |