Class: Wukong::FlatPack::Tokens::Token
- Inherits:
-
Object
- Object
- Wukong::FlatPack::Tokens::Token
- Defined in:
- lib/wukong/model/flatpack_parser/tokens.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#indicator ⇒ Object
Returns the value of attribute indicator.
-
#length ⇒ Object
Returns the value of attribute length.
-
#position ⇒ Object
Returns the value of attribute position.
Class Method Summary collapse
Instance Attribute Details
#indicator ⇒ Object
Returns the value of attribute indicator.
13 14 15 |
# File 'lib/wukong/model/flatpack_parser/tokens.rb', line 13 def indicator @indicator end |
#length ⇒ Object
Returns the value of attribute length.
12 13 14 |
# File 'lib/wukong/model/flatpack_parser/tokens.rb', line 12 def length @length end |
#position ⇒ Object
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 |