Sha256: 4b64ab90aef574ec7d7c913d1107eb73764e814713530c419825be98068474d0

Contents?: true

Size: 342 Bytes

Versions: 6

Compression:

Stored size: 342 Bytes

Contents

# encoding: UTF-8
require 'csv'

module Wice
  class Spreadsheet  #:nodoc:

    attr_reader :tempfile

    def initialize(name, field_separator)  #:nodoc:
      @tempfile = Tempfile.new(name)
      @csv = CSV.new(@tempfile, col_sep: field_separator)
    end

    def << (row)  #:nodoc:
      @csv << row
    end

  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
wice_grid-3.4.14 lib/wice/wice_grid_spreadsheet.rb
wice_grid-3.4.13 lib/wice/wice_grid_spreadsheet.rb
wice_grid-3.4.12 lib/wice/wice_grid_spreadsheet.rb
wice_grid-3.4.11 lib/wice/wice_grid_spreadsheet.rb
wice_grid-3.4.10 lib/wice/wice_grid_spreadsheet.rb
wice_grid-3.4.9 lib/wice/wice_grid_spreadsheet.rb