Class: RubyToken::TkId
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Attributes inherited from Token
Instance Method Summary collapse
-
#initialize(seek, line_no, char_no, name) ⇒ TkId
constructor
A new instance of TkId.
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
#name ⇒ Object (readonly)
Returns the value of attribute name
42 43 44 |
# File 'lib/irb/ruby-token.rb', line 42 def name @name end |