Class: ParamsReady::Value::SymbolCoder

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

Direct Known Subclasses

Query::GroupingOperatorCoder

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



130
131
132
# File 'lib/params_ready/value/coder.rb', line 130

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

.format(value, format) ⇒ Object



134
135
136
# File 'lib/params_ready/value/coder.rb', line 134

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