Sha256: ddf1978295aaacfa6e365c171582caa4ac17e0d95a1a17a051bcb96de8e27291

Contents?: true

Size: 413 Bytes

Versions: 5

Compression:

Stored size: 413 Bytes

Contents

# encoding: utf-8
require 'csv'

module Wice
  class Spreadsheet  #:nodoc:

    #:nodoc:
    attr_reader :tempfile

    def initialize(name, field_separator, encoding = nil)  #:nodoc:
      @tempfile = Tempfile.new(name)
      @tempfile.set_encoding(encoding) unless encoding.blank?
      @csv = CSV.new(@tempfile, col_sep: field_separator)
    end

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

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
wice_grid_ms-3.6.2 lib/wice/wice_grid_spreadsheet.rb
wice_grid_ms-3.6.1 lib/wice/wice_grid_spreadsheet.rb
wice_grid_ms-3.6.0 lib/wice/wice_grid_spreadsheet.rb
wice_grid-3.6.0 lib/wice/wice_grid_spreadsheet.rb
wice_grid-3.6.0.pre5 lib/wice/wice_grid_spreadsheet.rb