Class: RubyToken::Token

Inherits:
Object show all
Defined in:
lib/irb/ruby-token.rb

Direct Known Subclasses

TkError, TkId, TkNode, TkOp, TkUnknownChar, TkVal

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(seek, line_no, char_no) ⇒ Token

Returns a new instance of Token


22
23
24
25
26
# File 'lib/irb/ruby-token.rb', line 22

def initialize(seek, line_no, char_no)
  @seek = seek
  @line_no = line_no
  @char_no = char_no
end

Instance Attribute Details

#char_noObject (readonly)

Returns the value of attribute char_no


27
28
29
# File 'lib/irb/ruby-token.rb', line 27

def char_no
  @char_no
end

#line_noObject (readonly)

Returns the value of attribute line_no


27
28
29
# File 'lib/irb/ruby-token.rb', line 27

def line_no
  @line_no
end

#seekObject (readonly)

Returns the value of attribute seek


27
28
29
# File 'lib/irb/ruby-token.rb', line 27

def seek
  @seek
end