Class: ParamsReady::Value::CheckboxBooleanCoder
- Inherits:
-
BooleanCoder
- Object
- AbstractCoder
- Coder
- BooleanCoder
- ParamsReady::Value::CheckboxBooleanCoder
- Defined in:
- lib/params_ready/value/custom.rb
Class Method Summary collapse
Methods inherited from BooleanCoder
Methods inherited from Coder
Methods included from Coercion
Methods inherited from AbstractCoder
Methods included from Extensions::ClassReaderWriter
Class Method Details
.format(value, format) ⇒ Object
38 39 40 41 |
# File 'lib/params_ready/value/custom.rb', line 38 def self.format(value, format) return value unless format.marshal? :boolean return value ? 'true' : nil end |