Class: Dynamoid::TypeCasting::BooleanTypeCaster
- Defined in:
- lib/dynamoid/type_casting.rb
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from Dynamoid::TypeCasting::Base
Instance Method Details
#process(value) ⇒ Object
280 281 282 283 284 285 286 |
# File 'lib/dynamoid/type_casting.rb', line 280 def process(value) if value == '' nil else ![false, 'false', 'FALSE', 0, '0', 'f', 'F', 'off', 'OFF'].include? value end end |