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 360
360:     def initialize(line_no, char_no)
361:       @line_no = line_no
362:       @char_no = char_no
363:       @text    = NO_TEXT
364:     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 367
367:     def set_text(text)
368:       @text = text
369:       self
370:     end

[Validate]