Class: Nendo::Token

Inherits:
Object
  • Object
show all
Defined in:
lib/nendo.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#columnObject

Returns the value of attribute column.



266
267
268
# File 'lib/nendo.rb', line 266

def column
  @column
end

#kindObject

Returns the value of attribute kind.



266
267
268
# File 'lib/nendo.rb', line 266

def kind
  @kind
end

#linenoObject

Returns the value of attribute lineno.



266
267
268
# File 'lib/nendo.rb', line 266

def lineno
  @lineno
end

#sourcefileObject

Returns the value of attribute sourcefile.



266
267
268
# File 'lib/nendo.rb', line 266

def sourcefile
  @sourcefile
end

#strObject

Returns the value of attribute str.



266
267
268
# File 'lib/nendo.rb', line 266

def str
  @str
end