Class | Ruport::Formatter::CSV |
In: |
lib/ruport/formatter/csv.rb
|
Parent: | Formatter |
This formatter implements the CSV format for Ruport‘s Row, Table, Group and Grouping renderers. It is a light wrapper around James Edward Gray II‘s FasterCSV.
:style Used for grouping (:inline,:justified,:raw)
:format_options A hash of FasterCSV options
:show_table_headers True by default
:show_group_headers True by default
Hook for setting available options using a template. See the template documentation for the available options and their format.
Generates table header by turning column_names into a CSV row. Uses the row renderer to generate the actual formatted output
This method does not do anything if options.show_table_headers is false or the Data::Table has no column names.