Sha256: 29d5d0f880102006a269cf96148cc877c9a02ca8fed6fd0725e3f4294d3ea75f

Contents?: true

Size: 447 Bytes

Versions: 5

Compression:

Stored size: 447 Bytes

Contents

module DiningTable
  
  module Presenters

    class ExcelPresenter < SpreadsheetPresenter

      attr_accessor :worksheet
      private :worksheet, :worksheet=

      def initialize( worksheet, *args )
        super( *args )
        self.worksheet = worksheet
      end
      
      def identifier
        :xlsx
      end
      
      private
      
        def add_row(array)
          worksheet.add_row( array )
        end

    end

  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
dining-table-1.1.3 lib/dining-table/presenters/excel_presenter.rb
dining-table-1.1.2 lib/dining-table/presenters/excel_presenter.rb
dining-table-1.1.1 lib/dining-table/presenters/excel_presenter.rb
dining-table-1.1.0 lib/dining-table/presenters/excel_presenter.rb
dining-table-1.0.0 lib/dining-table/presenters/excel_presenter.rb