Class RubyToken::Token
In: parsers/parse_rb.rb
Parent: Object

Methods

new   set_text  

Public Class methods

[Source]

    # File parsers/parse_rb.rb, line 43
43:     def initialize(line_no, char_no)
44:       @line_no = line_no
45:       @char_no = char_no
46:       @text    = NO_TEXT
47:     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 parsers/parse_rb.rb, line 51
51:     def set_text(text)
52:       @text = text
53:       self
54:     end

[Validate]