Class: ExcelFormulaLexer::Token

Inherits:
Object
  • Object
show all
Defined in:
lib/surpass/ExcelFormulaLexer.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(token_type, int_type, line, pos, text, channel = nil) ⇒ Token

Returns a new instance of Token.



80
81
82
83
84
85
86
87
# File 'lib/surpass/ExcelFormulaLexer.rb', line 80

def initialize(token_type, int_type, line, pos, text, channel = nil)
    @token_type = token_type
    @int_type = int_type
    @line = line
    @pos = pos
    @text = text
    @channel = channel
end

Instance Attribute Details

#channelObject (readonly)

Returns the value of attribute channel.



78
79
80
# File 'lib/surpass/ExcelFormulaLexer.rb', line 78

def channel
  @channel
end

#int_typeObject (readonly) Also known as: to_i

Returns the value of attribute int_type.



74
75
76
# File 'lib/surpass/ExcelFormulaLexer.rb', line 74

def int_type
  @int_type
end

#lineObject (readonly)

Returns the value of attribute line.



75
76
77
# File 'lib/surpass/ExcelFormulaLexer.rb', line 75

def line
  @line
end

#posObject (readonly)

Returns the value of attribute pos.



76
77
78
# File 'lib/surpass/ExcelFormulaLexer.rb', line 76

def pos
  @pos
end

#textObject (readonly)

Returns the value of attribute text.



77
78
79
# File 'lib/surpass/ExcelFormulaLexer.rb', line 77

def text
  @text
end

#token_typeObject (readonly)

Returns the value of attribute token_type.



73
74
75
# File 'lib/surpass/ExcelFormulaLexer.rb', line 73

def token_type
  @token_type
end