Class: SrcLexer::Lexer::PosInfo
- Inherits:
-
Object
- Object
- SrcLexer::Lexer::PosInfo
- Defined in:
- lib/src_lexer.rb
Instance Attribute Summary collapse
-
#char_no ⇒ Object
Returns the value of attribute char_no.
-
#index ⇒ Object
Returns the value of attribute index.
-
#line_no ⇒ Object
Returns the value of attribute line_no.
Instance Method Summary collapse
-
#initialize ⇒ PosInfo
constructor
A new instance of PosInfo.
Constructor Details
#initialize ⇒ PosInfo
Returns a new instance of PosInfo.
56 57 58 59 60 |
# File 'lib/src_lexer.rb', line 56 def initialize @index = 0 @line_no = 1 @char_no = 1 end |
Instance Attribute Details
#char_no ⇒ Object
Returns the value of attribute char_no.
54 55 56 |
# File 'lib/src_lexer.rb', line 54 def char_no @char_no end |
#index ⇒ Object
Returns the value of attribute index.
54 55 56 |
# File 'lib/src_lexer.rb', line 54 def index @index end |
#line_no ⇒ Object
Returns the value of attribute line_no.
54 55 56 |
# File 'lib/src_lexer.rb', line 54 def line_no @line_no end |