Class: RDoc::Token

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

See rdoc/parsers/parse_f95.rb

### Methods

new set_text

### Constants

NO_TEXT | = | "??".freeze

### Attributes

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

### Public Class methods

new(line_no, char_no)

[Source]

    # File rdoc/parsers/parse_f95.rb, line 13
        def initialize(line_no, char_no)
          @line_no = line_no
          @char_no = char_no
          @text    = NO_TEXT
        end

### Public Instance methods

set_text(text)

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

[Source]

    # File rdoc/parsers/parse_f95.rb, line 20
        def set_text(text)
          @text = text
          self
        end

[Validate]