Class: Cborb::Decoding::Types::Type

Inherits:
Object
  • Object
show all
Defined in:
lib/cborb/decoding/types/type.rb

Overview

Base class for all type classes

Class Method Summary collapse

Class Method Details

.accept(im_data, type, value) ⇒ Object

Parameters:

  • im_data (Object)
  • type (Class)
  • value (Object)


19
20
21
# 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) ⇒ Object

Parameters:

Raises:

  • (NotImplementedError)


12
13
14
# File 'lib/cborb/decoding/types/type.rb', line 12

def self.decode(state, additional_info)
  raise NotImplementedError
end

.indefinite?Boolean

Returns:

  • (Boolean)


6
7
8
# File 'lib/cborb/decoding/types/type.rb', line 6

def self.indefinite?
  false
end