Method: Cborb::Decoding::Types::Map.accept
- Defined in:
- lib/cborb/decoding/types/map.rb
.accept(im_data, type, value) ⇒ Object
20 21 22 23 24 25 26 27 |
# File 'lib/cborb/decoding/types/map.rb', line 20 def self.accept(im_data, type, value) im_data.keys_and_values << value if im_data.keys_and_values.size == im_data.size Hash[*im_data.keys_and_values] else Cborb::Decoding::State::CONTINUE end end |