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.
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_no ⇒ Object (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_no ⇒ Object (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 |
#seek ⇒ Object (readonly)
Returns the value of attribute seek.
28 29 30 |
# File 'lib/irb/ruby-token.rb', line 28 def seek @seek end |