Class: ImporteerPlan::MyCsv
- Defined in:
- lib/importeer_plan.rb
Instance Attribute Summary
Attributes inherited from Importeer
#dir, #initial, #name, #options, #path, #sep, #size_batch
Instance Method Summary collapse
- #bron ⇒ Object
-
#initialize ⇒ MyCsv
constructor
A new instance of MyCsv.
Methods inherited from Importeer
#commaf, dir, #importeer, #pointf, #sweep
Constructor Details
#initialize ⇒ MyCsv
Returns a new instance of MyCsv.
63 64 65 66 |
# File 'lib/importeer_plan.rb', line 63 def initialize(*) super # @sep = options[:sep] end |
Instance Method Details
#bron ⇒ Object
68 69 70 |
# File 'lib/importeer_plan.rb', line 68 def bron CSV.read(path, { :col_sep => @sep , :encoding => "ISO-8859-1"}).tap{|x| x.shift}.each_slice(@size_batch) end |