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.



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

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.



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

def char_no
  @char_no
end

#line_noObject (readonly)

Returns the value of attribute line_no.



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

def line_no
  @line_no
end

#seekObject (readonly)

Returns the value of attribute seek.



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

def seek
  @seek
end