Extended maintenance of Ruby versions 1.8.7 and 1.9.2 ended on July 31, 2014. Read more

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
            

Commenting is here to help enhance the documentation. For example, code samples, or clarification of the documentation.

If you have questions about Ruby or the documentation, please post to one of the Ruby mailing lists. You will get better, faster, help that way.

If you wish to post a correction of the docs, please do so, but also file bug report so that it can be corrected for the next release. Thank you.

If you want to help improve the Ruby documentation, please visit Documenting-ruby.org.

blog comments powered by Disqus