Created
February 5, 2013 00:49
-
-
Save mchung/4711177 to your computer and use it in GitHub Desktop.
FasterCSV around Tempfile.
This file contains hidden or 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
def new_csv_file | |
file = Tempfile.new('data.csv') | |
FasterCSV.open(file.path, "w") do |csv| | |
csv << [1,2,3,4] | |
end | |
file | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment