Class: ImporteerPlan::MyCsv

Inherits:
Importeer show all
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

Methods inherited from Importeer

#commaf, dir, #importeer, #pointf, #sweep

Constructor Details

#initializeMyCsv

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

#bronObject



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