Method: RMatrix::PrintTable#column_width
- Defined in:
- lib/rmatrix/printing/print_table.rb
#column_width(column) ⇒ Object
68 69 70 71 72 |
# File 'lib/rmatrix/printing/print_table.rb', line 68 def column_width(column) self.row_count.times.reduce(0) do |agg, row| [agg, self.cell_repr(self.cells[[column, row]]).length].max end end |