Class: Cborb::Decoding::Types::Type
- Inherits:
-
Object
- Object
- Cborb::Decoding::Types::Type
show all
- Defined in:
- lib/cborb/decoding/types/type.rb
Overview
Base class for all type classes
Direct Known Subclasses
Array, Break, ByteString, FloatingPoint, HalfPrecisionFloatingPoint, IndefiniteArray, IndefiniteByteString, IndefiniteMap, IndefiniteTextString, Integer, Map, NegativeInteger, Root, SimpleValue, Tag, TextString, UnassignedSimpleValue, Unknown
Class Method Summary
collapse
Class Method Details
.accept(im_data, type, 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
12
13
14
|
# File 'lib/cborb/decoding/types/type.rb', line 12
def self.decode(state, additional_info)
raise NotImplementedError
end
|
.indefinite? ⇒ Boolean
6
7
8
|
# File 'lib/cborb/decoding/types/type.rb', line 6
def self.indefinite?
false
end
|