Sha256: 7a311a26bb84644a961a24ced339505c0d3e453333c29adac54764591fbe0076

Contents?: true

Size: 420 Bytes

Versions: 3

Compression:

Stored size: 420 Bytes

Contents

module Lionel
  class ProxyWorksheet
    delegate :rows, to: :worksheet
    delegate :size, to: :rows

    attr_reader :worksheet
    def initialize(worksheet)
      @worksheet = worksheet
    end

    def []=(col, row, value)
      worksheet["#{col}#{row}"] = value
    end

    def [](col, row)
      worksheet["#{col}#{row}"]
    end

    HEADER_ROW = 1
    def content_rows
      rows(HEADER_ROW)
    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
lionel_richie-0.1.2 lib/lionel/proxy_worksheet.rb
lionel_richie-0.1.1 lib/lionel/proxy_worksheet.rb
lionel_richie-0.1.0 lib/lionel/proxy_worksheet.rb