Class: Cborb::Decoding::Types::UnassignedSimpleValue

Inherits:
Type
  • Object
show all
Extended by:
IntegerDecodable
Defined in:
lib/cborb/decoding/types/unassigned_simple_value.rb

Overview

To represent unassigned simple value

Constant Summary

Constants included from IntegerDecodable

IntegerDecodable::UNPACK_TEMPLATES

Class Method Summary collapse

Methods included from IntegerDecodable

consume_as_integer

Methods inherited from Type

accept, indefinite?

Class Method Details

.decode(state, additional_info) ⇒ Object



8
9
10
11
# File 'lib/cborb/decoding/types/unassigned_simple_value.rb', line 8

def self.decode(state, additional_info)
  simple_value = consume_as_integer(state, additional_info)
  state.accept_value(self, Cborb::Decoding::UnassignedSimpleValue.new(simple_value))
end