Module: Transformers::Boolean
- Defined in:
- lib/transformers/boolean.rb
Constant Summary collapse
- TRUE_VALUES =
['true', true].freeze
Class Method Summary collapse
Class Method Details
.call(value) ⇒ Object
5 6 7 |
# File 'lib/transformers/boolean.rb', line 5 def self.call(value) TRUE_VALUES.include?(value) end |