Create a gist now

Instantly share code, notes, and snippets.

CSV unparse
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 }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment