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
value_class_name
#class_reader_writer
Methods included from Coercion
#strict_default?, #try_coerce
Class Method Details
.coerce(input, _) ⇒ Object
121
122
123
|
# File 'lib/params_ready/value/coder.rb', line 121
def self.coerce(input, _)
input.to_s
end
|
125
126
127
|
# File 'lib/params_ready/value/coder.rb', line 125
def self.format(value, _)
value
end
|