Class: Rucc::Pos
- Inherits:
-
Object
- Object
- Rucc::Pos
- Defined in:
- lib/rucc/pos.rb
Instance Attribute Summary collapse
-
#column ⇒ Object
readonly
Returns the value of attribute column.
-
#line ⇒ Object
readonly
Returns the value of attribute line.
Instance Method Summary collapse
-
#initialize(line, column) ⇒ Pos
constructor
A new instance of Pos.
Constructor Details
#initialize(line, column) ⇒ Pos
Returns a new instance of Pos.
5 6 7 8 |
# File 'lib/rucc/pos.rb', line 5 def initialize(line, column) @line = line @column = column end |
Instance Attribute Details
#column ⇒ Object (readonly)
Returns the value of attribute column.
9 10 11 |
# File 'lib/rucc/pos.rb', line 9 def column @column end |
#line ⇒ Object (readonly)
Returns the value of attribute line.
9 10 11 |
# File 'lib/rucc/pos.rb', line 9 def line @line end |