Class: CommandLineReporter::Table
- Inherits:
-
Object
- Object
- CommandLineReporter::Table
- Defined in:
- lib/style_stats/templates/table.rb
Instance Method Summary collapse
Instance Method Details
#output ⇒ Object
33 34 35 36 37 38 39 40 41 42 43 |
# 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 |