Class: ParamsReady::Value::DowncaseStringCoder

Inherits:
StringCoder show all
Defined in:
lib/params_ready/value/custom.rb

Class Method Summary collapse

Methods inherited from StringCoder

format

Methods inherited from Coder

instance

Methods included from Coercion

#strict_default?, #try_coerce

Methods inherited from AbstractCoder

value_class_name

Methods included from Extensions::ClassReaderWriter

#class_reader_writer

Class Method Details

.coerce(value, context) ⇒ Object



6
7
8
9
# File 'lib/params_ready/value/custom.rb', line 6

def self.coerce(value, context)
  string = super
  string.downcase
end