In Files

  • rdoc/parsers/parse_rb.rb

Parent

Methods

Files

Class/Module Index [+]

Quicksearch

RubyToken::Token

Constants

NO_TEXT

Attributes

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

Public Class Methods

new(line_no, char_no) click to toggle source
 
               # File rdoc/parsers/parse_rb.rb, line 43
def initialize(line_no, char_no)
  @line_no = line_no
  @char_no = char_no
  @text    = NO_TEXT
end
            

Public Instance Methods

set_text(text) click to toggle source

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

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