Class RDoc::Token
In: 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 parsers/parse_f95.rb, line 349
349:     def initialize(line_no, char_no)
350:       @line_no = line_no
351:       @char_no = char_no
352:       @text    = NO_TEXT
353:     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 parsers/parse_f95.rb, line 356
356:     def set_text(text)
357:       @text = text
358:       self
359:     end

[Validate]