Class: Wice::Spreadsheet
Overview
:nodoc:
Instance Attribute Summary collapse
-
#tempfile ⇒ Object
readonly
Returns the value of attribute tempfile.
Instance Method Summary collapse
-
#<<(row) ⇒ Object
:nodoc:.
-
#initialize(name, field_separator) ⇒ Spreadsheet
constructor
:nodoc:.
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
#tempfile ⇒ Object (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 |