public
Created

CSV unparse

  • Download Gist
csv_unparse.rb
Ruby
1 2 3 4 5 6 7 8 9 10 11 12
require 'csv'
 
# Please someone include this in the csv module proper. Thanks.
# Public domain. Author: Felix Rabe (heavily based on 1.9.3 stdlib csv docs)
 
class CSV
def CSV.unparse array
CSV.generate do |csv|
array.each { |i| csv << i }
end
end
end

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.