Class: Nendo::Token
- Inherits:
-
Object
- Object
- Nendo::Token
- Defined in:
- lib/nendo/ruby/types.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.
330 331 332 333 334 335 336 |
# File 'lib/nendo/ruby/types.rb', line 330 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.
337 338 339 |
# File 'lib/nendo/ruby/types.rb', line 337 def column @column end |
#kind ⇒ Object
Returns the value of attribute kind.
337 338 339 |
# File 'lib/nendo/ruby/types.rb', line 337 def kind @kind end |
#lineno ⇒ Object
Returns the value of attribute lineno.
337 338 339 |
# File 'lib/nendo/ruby/types.rb', line 337 def lineno @lineno end |
#sourcefile ⇒ Object
Returns the value of attribute sourcefile.
337 338 339 |
# File 'lib/nendo/ruby/types.rb', line 337 def sourcefile @sourcefile end |
#str ⇒ Object
Returns the value of attribute str.
337 338 339 |
# File 'lib/nendo/ruby/types.rb', line 337 def str @str end |