Method: Ruport::Formatter::Text#prepare_table

Defined in:
lib/ruport/formatter/text.rb

#prepare_tableObject

Checks to ensure the table is not empty and then calls calculate_max_col_widths.



62
63
64
65
66
# File 'lib/ruport/formatter/text.rb', line 62

def prepare_table
  raise Ruport::FormatterError, "Can't output table without " +
    "data or column names." if data.empty? && data.column_names.empty?
  calculate_max_col_widths
end