Class: RDoc::RubyToken::TkId
Instance Attribute Summary (collapse)
-
- (Object) name
(also: #text)
readonly
Returns the value of attribute name.
Attributes inherited from Token
Instance Method Summary (collapse)
- - (Object) ==(other)
-
- (TkId) initialize(seek, line_no, char_no, name)
constructor
A new instance of TkId.
- - (Object) set_text(text)
Constructor Details
- (TkId) initialize(seek, line_no, char_no, name)
A new instance of TkId
89 90 91 92 |
# File 'lib/rdoc/ruby_token.rb', line 89 def initialize(seek, line_no, char_no, name) super(seek, line_no, char_no) @name = name end |
Instance Attribute Details
- (Object) name (readonly) Also known as: text
Returns the value of attribute name
93 94 95 |
# File 'lib/rdoc/ruby_token.rb', line 93 def name @name end |
Instance Method Details
- (Object) ==(other)
95 96 97 98 99 100 |
# File 'lib/rdoc/ruby_token.rb', line 95 def ==(other) self.class == other.class and other.line_no == @line_no and other.char_no == @char_no and other.name == @name end |
- (Object) set_text(text)
102 103 104 105 |
# File 'lib/rdoc/ruby_token.rb', line 102 def set_text text @name = text self end |