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


new   set_text  


NO_TEXT = "??".freeze


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

Public Class methods


    # File parsers/parse_rb.rb, line 44
44:     def initialize(line_no, char_no)
45:       @line_no = line_no
46:       @char_no = char_no
47:       @text    = NO_TEXT
48:     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


    # File parsers/parse_rb.rb, line 52
52:     def set_text(text)
53:       @text = text
54:       self
55:     end