Skip to content

Instantly share code, notes, and snippets.

@imajes
Created May 4, 2010 18:15
Show Gist options
  • Save imajes/389756 to your computer and use it in GitHub Desktop.
Save imajes/389756 to your computer and use it in GitHub Desktop.
>> require 'fastercsv'
>> puts require 'fastercsv'
false
>> g = [1,2,3,4,5]
>> puts g.class
Array
>> out = ""
>> r = FasterCSV.new(out)
>> r << g
>> p r.inspect
"<#FasterCSV io_type:StringIO lineno:1 col_sep:\",\" row_sep:\"\\n\" quote_char:\"\\\"\">"
>> p r.display
#<FasterCSV:0x1021b56e0>nil
>> p out
"1,2,3,4,5\n"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment