-
-
Save hundredwatt/5e1681a2751ca15eabe3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, opts = {} | |
CSV.generate(opts) do |csv| | |
array.each { |i| csv << i } | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment