Class: Laser::LexicalAnalysis::Token
- Inherits:
-
Struct
- Object
- Struct
- Laser::LexicalAnalysis::Token
- Defined in:
- lib/laser/analysis/lexical_analysis.rb
Overview
This is a wrapper class around the tokens returned by Ripper. Since the tokens are just arrays, this class lets us use nice mnemonics with almost zero runtime overhead.
Instance Attribute Summary (collapse)
-
- (Object) body
Returns the value of attribute body.
-
- (Object) col
Returns the value of attribute col.
-
- (Object) line
Returns the value of attribute line.
-
- (Object) type
Returns the value of attribute type.
Instance Attribute Details
- (Object) body
Returns the value of attribute body
9 10 11 |
# File 'lib/laser/analysis/lexical_analysis.rb', line 9 def body @body end |
- (Object) col
Returns the value of attribute col
9 10 11 |
# File 'lib/laser/analysis/lexical_analysis.rb', line 9 def col @col end |
- (Object) line
Returns the value of attribute line
9 10 11 |
# File 'lib/laser/analysis/lexical_analysis.rb', line 9 def line @line end |
- (Object) type
Returns the value of attribute type
9 10 11 |
# File 'lib/laser/analysis/lexical_analysis.rb', line 9 def type @type end |