Class: ReVIEW::Compiler::Position
Instance Attribute Summary collapse
-
#col ⇒ Object
Returns the value of attribute col.
-
#line ⇒ Object
Returns the value of attribute line.
-
#pos ⇒ Object
Returns the value of attribute pos.
Instance Method Summary collapse
-
#initialize(compiler) ⇒ Position
constructor
A new instance of Position.
Constructor Details
#initialize(compiler) ⇒ Position
Returns a new instance of Position.
378 379 380 381 382 |
# File 'lib/review/compiler.rb', line 378 def initialize(compiler) @pos = compiler.pos @line = compiler.current_line @col = compiler.current_column end |
Instance Attribute Details
#col ⇒ Object
Returns the value of attribute col.
377 378 379 |
# File 'lib/review/compiler.rb', line 377 def col @col end |
#line ⇒ Object
Returns the value of attribute line.
377 378 379 |
# File 'lib/review/compiler.rb', line 377 def line @line end |
#pos ⇒ Object
Returns the value of attribute pos.
377 378 379 |
# File 'lib/review/compiler.rb', line 377 def pos @pos end |