Class: ParamsReady::Value::StringCoder
- Inherits:
-
Coder
show all
- Defined in:
- lib/params_ready/value/coder.rb
Class Method Summary
collapse
Methods inherited from Coder
instance
Methods included from Coercion
#strict_default?, #try_coerce
value_class_name
#class_reader_writer
Class Method Details
.coerce(input, _) ⇒ Object
149
150
151
|
# File 'lib/params_ready/value/coder.rb', line 149
def self.coerce(input, _)
input.to_s
end
|
153
154
155
|
# File 'lib/params_ready/value/coder.rb', line 153
def self.format(value, _)
value
end
|