Class RDoc::Token
In: lib/rdoc/parsers/parse_f95.rb
Parent: Object

Methods

new   set_text  

Constants

NO_TEXT = "??".freeze

Attributes

char_no  [R] 
line_no  [R] 
text  [R] 

Public Class methods

[Source]

     # File lib/rdoc/parsers/parse_f95.rb, line 158
158:     def initialize(line_no, char_no)
159:       @line_no = line_no
160:       @char_no = char_no
161:       @text    = NO_TEXT
162:     end

Public Instance methods

Because we‘re used in contexts that expect to return a token, we set the text string and then return ourselves

[Source]

     # File lib/rdoc/parsers/parse_f95.rb, line 165
165:     def set_text(text)
166:       @text = text
167:       self
168:     end

[Validate]