Class: ParamsReady::Value::SymbolCoder

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

Direct Known Subclasses

Query::GroupingOperatorCoder

Class Method Summary collapse

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(input, _) ⇒ Object



161
162
163
# File 'lib/params_ready/value/coder.rb', line 161

def self.coerce(input, _)
  input.to_sym
end

.format(value, format) ⇒ Object



165
166
167
# File 'lib/params_ready/value/coder.rb', line 165

def self.format(value, format)
  value.to_s
end