method

to_csv

v1_9_3_392 - Show latest stable - Class: CSV::Table
to_csv(options = Hash.new)
public

Returns the table as a complete CSV String. Headers will be listed first, then all of the field rows.

This method assumes you want the Table.headers(), unless you explicitly pass :write_headers => false.