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

[Source]

    # File rdoc/parsers/parse_f95.rb, line 13
13:     def initialize(line_no, char_no)
14:       @line_no = line_no
15:       @char_no = char_no
16:       @text    = NO_TEXT
17:     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 rdoc/parsers/parse_f95.rb, line 20
20:     def set_text(text)
21:       @text = text
22:       self
23:     end

Search

Google

Ruby API Docs

Links