Class: RubyToken::TkUnknownChar

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, id) ⇒ TkUnknownChar

Returns a new instance of TkUnknownChar.



68
69
70
71
# File 'lib/irb/ruby-token.rb', line 68

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

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



72
73
74
# File 'lib/irb/ruby-token.rb', line 72

def name
  @name
end