Class: Wice::Spreadsheet

Inherits:
Object show all
Defined in:
lib/wice_grid_spreadsheet.rb

Overview

:nodoc:

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, field_separator) ⇒ Spreadsheet

:nodoc:


11
12
13
14
# File 'lib/wice_grid_spreadsheet.rb', line 11

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

Instance Attribute Details

#tempfileObject (readonly)

Returns the value of attribute tempfile


7
8
9
# File 'lib/wice_grid_spreadsheet.rb', line 7

def tempfile
  @tempfile
end

Instance Method Details

#<<(row) ⇒ Object

:nodoc:


16
17
18
# File 'lib/wice_grid_spreadsheet.rb', line 16

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