Class: LanguageParser::Token
- Inherits:
-
Object
- Object
- LanguageParser::Token
- Defined in:
- lib/cgialib/lp/Tokenizer.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(text) ⇒ Token
constructor
initialize( text ).
-
#to_s ⇒ Object
to_s().
Constructor Details
#initialize(text) ⇒ Token
initialize( text )
text - The text of the token
Initialieze the token with it’s text
19 |
# File 'lib/cgialib/lp/Tokenizer.rb', line 19 def initialize( text ) @text = text; end |
Instance Method Details
#to_s ⇒ Object
to_s()
Overload of the to-string method to return the text of the token
26 |
# File 'lib/cgialib/lp/Tokenizer.rb', line 26 def to_s() @text; end |