Ruby 1.9.2 リファレンスマニュアル > ライブラリ一覧 > csvライブラリ > CSV::Tableクラス > to_csv

instance method CSV::Table#to_csv

to_csv -> String
to_s -> String

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 <tt>:write_headers => false</tt>.