Class: RubyToken::TkId

Inherits:
Token
  • Object
show all
Defined in:
lib/rdoc-f95/parsers/parse_rb.rb

Direct Known Subclasses

TkKW

Constant Summary

Constants inherited from Token

RubyToken::Token::NO_TEXT

Instance Attribute Summary collapse

Attributes inherited from Token

#char_no, #line_no, #text

Instance Method Summary collapse

Methods inherited from Token

#set_text

Constructor Details

#initialize(line_no, char_no, name) ⇒ TkId

Returns a new instance of TkId.


64
65
66
67
# File 'lib/rdoc-f95/parsers/parse_rb.rb', line 64

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

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name


68
69
70
# File 'lib/rdoc-f95/parsers/parse_rb.rb', line 68

def name
  @name
end