Method: Decoding::Decoders::Field#initialize
- Defined in:
- lib/decoding/decoders/field.rb
#initialize(key, decoder) ⇒ Field
Returns a new instance of Field.
13 14 15 16 17 |
# File 'lib/decoding/decoders/field.rb', line 13 def initialize(key, decoder) @key = key.to_str @decoder = decoder.to_decoder super() end |