lib/csv2hash/csv_array.rb in csv2hash-0.0.2 vs lib/csv2hash/csv_array.rb in csv2hash-0.1
- old
+ new
@@ -2,10 +2,10 @@
class CsvArray < Array
def to_csv options = {}
CSV.generate(options) do |csv|
self.each do |element|
- csv << element
+ csv << [element[:value], element[:message]]
end
end
end
end