Class: Nendo::Token
- Inherits:
-
Object
- Object
- Nendo::Token
- Defined in:
- lib/nendo.rb
Instance Attribute Summary collapse
-
#column ⇒ Object
Returns the value of attribute column.
-
#kind ⇒ Object
Returns the value of attribute kind.
-
#lineno ⇒ Object
Returns the value of attribute lineno.
-
#sourcefile ⇒ Object
Returns the value of attribute sourcefile.
-
#str ⇒ Object
Returns the value of attribute str.
Instance Method Summary collapse
-
#initialize(kind, str, sourcefile, lineno = nil, column = nil) ⇒ Token
constructor
A new instance of Token.
Constructor Details
#initialize(kind, str, sourcefile, lineno = nil, column = nil) ⇒ Token
Returns a new instance of Token.
259 260 261 262 263 264 265 |
# File 'lib/nendo.rb', line 259 def initialize( kind, str, sourcefile, lineno = nil, column = nil ) @kind = kind @str = str @sourcefile = sourcefile @lineno = lineno @column = column end |
Instance Attribute Details
#column ⇒ Object
Returns the value of attribute column.
266 267 268 |
# File 'lib/nendo.rb', line 266 def column @column end |
#kind ⇒ Object
Returns the value of attribute kind.
266 267 268 |
# File 'lib/nendo.rb', line 266 def kind @kind end |
#lineno ⇒ Object
Returns the value of attribute lineno.
266 267 268 |
# File 'lib/nendo.rb', line 266 def lineno @lineno end |
#sourcefile ⇒ Object
Returns the value of attribute sourcefile.
266 267 268 |
# File 'lib/nendo.rb', line 266 def sourcefile @sourcefile end |
#str ⇒ Object
Returns the value of attribute str.
266 267 268 |
# File 'lib/nendo.rb', line 266 def str @str end |