Class: ParamsReady::Value::StringCoder
- Inherits:
-
Coder
- Object
- Coder
- ParamsReady::Value::StringCoder
show all
- Defined in:
- lib/params_ready/value/coder.rb
Class Method Summary
collapse
Methods inherited from Coder
strict_default?, try_coerce, value_class_name
#class_reader_writer
Class Method Details
.coerce(input, _) ⇒ Object
118
119
120
|
# File 'lib/params_ready/value/coder.rb', line 118
def self.coerce(input, _)
input.to_s
end
|
122
123
124
|
# File 'lib/params_ready/value/coder.rb', line 122
def self.format(value, _)
value
end
|