Skip to content

Instantly share code, notes, and snippets.

@mchung
Created February 5, 2013 00:49
Show Gist options
  • Save mchung/4711177 to your computer and use it in GitHub Desktop.
Save mchung/4711177 to your computer and use it in GitHub Desktop.
FasterCSV around Tempfile.
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