Method: Cborb::Decoding::State#push_stack

Defined in:
lib/cborb/decoding/state.rb

#push_stack(type, im_data = nil) ⇒ Object

Push type that has following data(e.g. Array) to stack

Parameters:

  • type (Class)

    Class constant that inherits Cborb::Decoding::Types::Type

  • im_data (Object) (defaults to: nil)

    depends on type



81
82
83
# File 'lib/cborb/decoding/state.rb', line 81

def push_stack(type, im_data = nil)
  @stack << [type, im_data]
end