lib/csv2hash/parser/mapping.rb in csv2hash-0.0.2 vs lib/csv2hash/parser/mapping.rb in csv2hash-0.1
- old
+ new
@@ -1,9 +1,10 @@
-module Parser::Mapping extend Parser
+module Csv2hash::Parser::Mapping
+ include Csv2hash::Parser
def fill!
- @data = {}.tap do |data_computed|
+ self.data = {}.tap do |data_computed|
data_computed[:data] ||= []
data_computed[:data] << {}.tap do |data_parsed|
fill_it data_parsed, data_source
end
end
@@ -21,6 +22,6 @@
end
end
end
end
-end
\ No newline at end of file
+end