Method: FormatOutput::ColumnBuilder#render

Defined in:
lib/format_output/builders/column_builder.rb

#renderObject

Render the page as an array of strings.



32
33
34
35
36
37
38
39
# File 'lib/format_output/builders/column_builder.rb', line 32

def render
  results, column_widths = [], get_column_widths

  rows.times { |row_index| results << render_row(row_index, column_widths)}

  @page_data.clear
  results
end