Class: CSKit::Parsers::Token
- Inherits:
-
Object
- Object
- CSKit::Parsers::Token
- Defined in:
- lib/cskit/parsers/token.rb
Instance Attribute Summary collapse
-
#position ⇒ Object
readonly
Returns the value of attribute position.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(type, value, position) ⇒ Token
constructor
A new instance of Token.
Constructor Details
#initialize(type, value, position) ⇒ Token
Returns a new instance of Token.
9 10 11 12 13 |
# File 'lib/cskit/parsers/token.rb', line 9 def initialize(type, value, position) @type = type @value = value @position = position end |
Instance Attribute Details
#position ⇒ Object (readonly)
Returns the value of attribute position.
7 8 9 |
# File 'lib/cskit/parsers/token.rb', line 7 def position @position end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
7 8 9 |
# File 'lib/cskit/parsers/token.rb', line 7 def type @type end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
7 8 9 |
# File 'lib/cskit/parsers/token.rb', line 7 def value @value end |