summaryrefslogtreecommitdiffstats
path: root/lib/roo/excelx/coordinate.rb
blob: 4f61b178d6754443c19fc31a15799ed807b8c9c1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
module Roo
  class Excelx
    class Coordinate < ::Array

      def initialize(row, column)
        super() << row << column
        freeze
      end

      def row
        self[0]
      end

      def column
        self[1]
      end
    end
  end
end