class CommandLineReporter::Table

Public Instance Methods

output() click to toggle source
# File lib/style_stats/templates/table.rb, line 33
def output
  return if self.rows.size == 0
  auto_adjust_widths if self.width == :auto

  puts separator('first') if self.border
  self.rows.each_with_index do |row, index|
    row.output
    puts separator('middle') if self.border && (index != self.rows.size - 1) && row.separate
  end
  puts separator('last') if self.border
end