Class: RubyToken::Token
Instance Attribute Summary collapse
-
#char_no ⇒ Object
readonly
Returns the value of attribute char_no.
-
#line_no ⇒ Object
readonly
Returns the value of attribute line_no.
-
#seek ⇒ Object
readonly
Returns the value of attribute seek.
Instance Method Summary collapse
-
#initialize(seek, line_no, char_no) ⇒ Token
constructor
A new instance of Token.
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_no ⇒ Object (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_no ⇒ Object (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 |
#seek ⇒ Object (readonly)
Returns the value of attribute seek
27 28 29 |
# File 'lib/irb/ruby-token.rb', line 27 def seek @seek end |