Class: Roo::Excelx::Coordinate

Inherits:
Array
  • Object
show all
Defined in:
lib/roo/excelx/coordinate.rb

Instance Method Summary collapse

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

#columnObject



14
15
16
# File 'lib/roo/excelx/coordinate.rb', line 14

def column
  self[1]
end

#rowObject



10
11
12
# File 'lib/roo/excelx/coordinate.rb', line 10

def row
  self[0]
end