class YARD::Parser::Ruby::Legacy::RubyToken::Token

Represents a token in the Ruby lexer

def initialize(line_no, char_no)

Parameters:
  • char_no (Integer) -- the char number to initialize the token to
  • line_no (Integer) -- the line number to initialize the token to
def initialize(line_no, char_no)
  @line_no = line_no
  @char_no = char_no
  @text    = NO_TEXT
end

def set_text(text)

Returns:
  • (Token) - this token object

Parameters:
  • text (String) -- the new text
def set_text(text)
  @text = text
  self
end