Class: Nendo::Token

Inherits:
Object
  • Object
show all
Defined in:
lib/nendo/ruby/types.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.



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

#columnObject

Returns the value of attribute column.



337
338
339
# File 'lib/nendo/ruby/types.rb', line 337

def column
  @column
end

#kindObject

Returns the value of attribute kind.



337
338
339
# File 'lib/nendo/ruby/types.rb', line 337

def kind
  @kind
end

#linenoObject

Returns the value of attribute lineno.



337
338
339
# File 'lib/nendo/ruby/types.rb', line 337

def lineno
  @lineno
end

#sourcefileObject

Returns the value of attribute sourcefile.



337
338
339
# File 'lib/nendo/ruby/types.rb', line 337

def sourcefile
  @sourcefile
end

#strObject

Returns the value of attribute str.



337
338
339
# File 'lib/nendo/ruby/types.rb', line 337

def str
  @str
end