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:
8 9 10 11 |
# File 'lib/wice/wice_grid_spreadsheet.rb', line 8 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.
6 7 8 |
# File 'lib/wice/wice_grid_spreadsheet.rb', line 6 def tempfile @tempfile end |
Instance Method Details
#<<(row) ⇒ Object
:nodoc:
13 14 15 |
# File 'lib/wice/wice_grid_spreadsheet.rb', line 13 def << (row) #:nodoc: @csv << row end |