Class: RubyToken::TkId

Inherits:
Token show all
Defined in:
lib/irb/ruby-token.rb

Instance Attribute Summary collapse

Attributes inherited from Token

#char_no, #line_no, #seek

Instance Method Summary collapse

Constructor Details

#initialize(seek, line_no, char_no, name) ⇒ TkId

Returns a new instance of TkId



38
39
40
41
# File 'lib/irb/ruby-token.rb', line 38

def initialize(seek, line_no, char_no, name)
  super(seek, line_no, char_no)
  @name = name
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name



42
43
44
# File 'lib/irb/ruby-token.rb', line 42

def name
  @name
end