Class: LexicalToken
Instance Attribute Summary collapse
-
#lex ⇒ Object
readonly
Returns the value of attribute lex.
Attributes inherited from Token
Instance Method Summary collapse
-
#initialize(type, lex, lineNum, colNum) ⇒ LexicalToken
constructor
A new instance of LexicalToken.
Constructor Details
#initialize(type, lex, lineNum, colNum) ⇒ LexicalToken
Returns a new instance of LexicalToken.
14 15 16 17 18 |
# File 'lib/token.rb', line 14 def initialize(type,lex,lineNum,colNum) super(type,lineNum,colNum) @lex = lex end |
Instance Attribute Details
#lex ⇒ Object (readonly)
Returns the value of attribute lex.
12 13 14 |
# File 'lib/token.rb', line 12 def lex @lex end |