Sha256: 90374cfc00339cab389aeeeee7c5b6c36d7d11927e3a6ac1a0d4946a0ec6c144
Contents?: true
Size: 502 Bytes
Versions: 2
Compression:
Stored size: 502 Bytes
Contents
require 'csv' module Wice class Spreadsheet #:nodoc: #:nodoc: attr_reader :tempfile def initialize(name, field_separator, encoding = nil) #:nodoc: @tempfile = Tempfile.new(name) @tempfile.chmod 0640 @tempfile.set_encoding(encoding) unless encoding.blank? @tempfile.write("\ufeff") # add byte order mark to help with Excel import @csv = CSV.new(@tempfile, col_sep: field_separator) end def << (row) #:nodoc: @csv << row end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pwice_grid-7.0.0 | lib/wice/wice_grid_spreadsheet.rb |
pwice_grid-6.1.2 | lib/wice/wice_grid_spreadsheet.rb |