class Cborb::Decoding::Types::Type

Base class for all type classes

Public Class Methods

accept(im_data, type, value) click to toggle source

@param [Object] im_data @param [Class] type @param [Object] value

# File lib/cborb/decoding/types/type.rb, line 19
def self.accept(im_data, type, value)
  raise "#{self} can't accept value"
end
decode(state, additional_info) click to toggle source

@param [Cborb::Decoding::State] state @param [Integer] additional_info

# File lib/cborb/decoding/types/type.rb, line 12
def self.decode(state, additional_info)
  raise NotImplementedError
end
indefinite?() click to toggle source

@return [Boolean]

# File lib/cborb/decoding/types/type.rb, line 6
def self.indefinite?
  false
end