Class: ExcelFormulaLexer::Token
- Inherits:
-
Object
- Object
- ExcelFormulaLexer::Token
- Defined in:
- lib/surpass/ExcelFormulaLexer.rb
Instance Attribute Summary collapse
-
#channel ⇒ Object
readonly
Returns the value of attribute channel.
-
#int_type ⇒ Object
(also: #to_i)
readonly
Returns the value of attribute int_type.
-
#line ⇒ Object
readonly
Returns the value of attribute line.
-
#pos ⇒ Object
readonly
Returns the value of attribute pos.
-
#text ⇒ Object
readonly
Returns the value of attribute text.
-
#token_type ⇒ Object
readonly
Returns the value of attribute token_type.
Instance Method Summary collapse
-
#initialize(token_type, int_type, line, pos, text, channel = nil) ⇒ Token
constructor
A new instance of Token.
Constructor Details
#initialize(token_type, int_type, line, pos, text, channel = nil) ⇒ Token
Returns a new instance of Token.
80 81 82 83 84 85 86 87 |
# File 'lib/surpass/ExcelFormulaLexer.rb', line 80 def initialize(token_type, int_type, line, pos, text, channel = nil) @token_type = token_type @int_type = int_type @line = line @pos = pos @text = text @channel = channel end |
Instance Attribute Details
#channel ⇒ Object (readonly)
Returns the value of attribute channel.
78 79 80 |
# File 'lib/surpass/ExcelFormulaLexer.rb', line 78 def channel @channel end |
#int_type ⇒ Object (readonly) Also known as: to_i
Returns the value of attribute int_type.
74 75 76 |
# File 'lib/surpass/ExcelFormulaLexer.rb', line 74 def int_type @int_type end |
#line ⇒ Object (readonly)
Returns the value of attribute line.
75 76 77 |
# File 'lib/surpass/ExcelFormulaLexer.rb', line 75 def line @line end |
#pos ⇒ Object (readonly)
Returns the value of attribute pos.
76 77 78 |
# File 'lib/surpass/ExcelFormulaLexer.rb', line 76 def pos @pos end |
#text ⇒ Object (readonly)
Returns the value of attribute text.
77 78 79 |
# File 'lib/surpass/ExcelFormulaLexer.rb', line 77 def text @text end |
#token_type ⇒ Object (readonly)
Returns the value of attribute token_type.
73 74 75 |
# File 'lib/surpass/ExcelFormulaLexer.rb', line 73 def token_type @token_type end |