Class: Roo::Excelx::Coordinate
- Inherits:
-
Array
- Object
- Array
- Roo::Excelx::Coordinate
- Defined in:
- lib/roo/excelx/coordinate.rb
Instance Method Summary collapse
- #column ⇒ Object
-
#initialize(row, column) ⇒ Coordinate
constructor
A new instance of Coordinate.
- #row ⇒ Object
Constructor Details
#initialize(row, column) ⇒ Coordinate
Returns a new instance of Coordinate.
5 6 7 8 |
# File 'lib/roo/excelx/coordinate.rb', line 5 def initialize(row, column) super() << row << column freeze end |
Instance Method Details
#column ⇒ Object
14 15 16 |
# File 'lib/roo/excelx/coordinate.rb', line 14 def column self[1] end |
#row ⇒ Object
10 11 12 |
# File 'lib/roo/excelx/coordinate.rb', line 10 def row self[0] end |