Class: Wukong::FlatPack::Tokens::Token

Inherits:
Object
  • Object
show all
Defined in:
lib/wukong/model/flatpack_parser/tokens.rb

Direct Known Subclasses

BasicToken, FixedPointToken

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#indicatorObject

Returns the value of attribute indicator.



13
14
15
# File 'lib/wukong/model/flatpack_parser/tokens.rb', line 13

def indicator
  @indicator
end

#lengthObject

Returns the value of attribute length.



12
13
14
# File 'lib/wukong/model/flatpack_parser/tokens.rb', line 12

def length
  @length
end

#positionObject

Returns the value of attribute position.



11
12
13
# File 'lib/wukong/model/flatpack_parser/tokens.rb', line 11

def position
  @position
end

Class Method Details

.indicator=(indicator) ⇒ Object



15
16
17
18
# File 'lib/wukong/model/flatpack_parser/tokens.rb', line 15

def self.indicator= indicator
  TOKEN_CLASSES[indicator] = self
  @indicator = indicator
end