Class RDoc::Token
In: rdoc/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 rdoc/parsers/parse_f95.rb, line 158
    def initialize(line_no, char_no)
      @line_no = line_no
      @char_no = char_no
      @text    = NO_TEXT
    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 165
    def set_text(text)
      @text = text
      self
    end

[Validate]

ruby-doc.org is a service of James Britt and Happy Camper Studios, a Ruby application development company in Phoenix, AZ.

Documentation content on ruby-doc.org is provided by remarkable members of the Ruby community.

For more information on the Ruby programming language, visit ruby-lang.org.

Want to help improve Ruby's API docs? See Ruby Documentation Guidelines.