Class RubyToken::Token

Object
  |
  +--RubyToken::Token

Attributes

char_no [R]
lex_state [R, W]
line_no [R]
text [R]

Constants

NO_TEXT = "??".freeze

Constructor Summary

initialize(line_no, char_no)

Public Instance Method Summary

Object char_no
      Returns the value of attribute char_no .
Object char_no=(value)
      Sets the attribute char_no .
Object lex_state
      Returns the value of attribute lex_state .
Object lex_state=(value)
      Sets the attribute lex_state .
Object line_no
      Returns the value of attribute line_no .
Object line_no=(value)
      Sets the attribute line_no .
Object set_text(text)
      Because we’re used in contexts that expect to return a token, .
Object text
      Returns the value of attribute text .
Object text=(value)
      Sets the attribute text .

Public Instance Method Details

char_no

public Object char_no

Returns the value of attribute char_no


char_no=

public Object char_no=(value)

Sets the attribute char_no

Parameters:
value - the value to set the attribute char_no to.

lex_state

public Object lex_state

Returns the value of attribute lex_state


lex_state=

public Object lex_state=(value)

Sets the attribute lex_state

Parameters:
value - the value to set the attribute lex_state to.

line_no

public Object line_no

Returns the value of attribute line_no


line_no=

public Object line_no=(value)

Sets the attribute line_no

Parameters:
value - the value to set the attribute line_no to.

set_text

public Object set_text(text)

Because we’re used in contexts that expect to return a token, we set the text string and then return ourselves


text

public Object text

Returns the value of attribute text


text=

public Object text=(value)

Sets the attribute text

Parameters:
value - the value to set the attribute text to.