Method: Cborb::Decoding::State#stack_top

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

#stack_topClass

Returns Class constant that inherits Cborb::Decoding::Types::Type on top of stack.

Returns:

  • (Class)

    Class constant that inherits Cborb::Decoding::Types::Type on top of stack.



106
107
108
# File 'lib/cborb/decoding/state.rb', line 106

def stack_top
  @stack.last.first
end