Class: ParamsReady::Value::StringCoder

Inherits:
Coder
  • Object
show all
Defined in:
lib/params_ready/value/coder.rb

Direct Known Subclasses

DowncaseStringCoder, NonEmptyStringCoder

Class Method Summary collapse

Methods inherited from Coder

strict_default?, try_coerce, value_class_name

Methods included from Extensions::ClassReaderWriter

#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

.format(value, _) ⇒ Object



122
123
124
# File 'lib/params_ready/value/coder.rb', line 122

def self.format(value, _)
  value
end