summaryrefslogtreecommitdiffstats
path: root/lib/roo/excelx/coordinate.rb
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@ubuntu.com>2019-01-14 01:40:56 -0500
committerLibravatarUnit 193 <unit193@ubuntu.com>2019-01-14 01:40:56 -0500
commitdddfa903d2b856146f05ffb4415c31d6127bb5bf (patch)
treee38c2aca92b54f06ccd0185f48dc47e3e1b3d77e /lib/roo/excelx/coordinate.rb
parent8280a21a23d44aa90177e2bc041d0b8dc8556f4b (diff)
New upstream version 2.8.0upstream/2.8.0
Diffstat (limited to 'lib/roo/excelx/coordinate.rb')
-rw-r--r--lib/roo/excelx/coordinate.rb15
1 files changed, 11 insertions, 4 deletions
diff --git a/lib/roo/excelx/coordinate.rb b/lib/roo/excelx/coordinate.rb
index 53b24ba..4f61b17 100644
--- a/lib/roo/excelx/coordinate.rb
+++ b/lib/roo/excelx/coordinate.rb
@@ -1,11 +1,18 @@
module Roo
class Excelx
- class Coordinate
- attr_accessor :row, :column
+ class Coordinate < ::Array
def initialize(row, column)
- @row = row
- @column = column
+ super() << row << column
+ freeze
+ end
+
+ def row
+ self[0]
+ end
+
+ def column
+ self[1]
end
end
end