Method: TTY::Table::Renderer::Basic#column_widths

Defined in:
lib/tty/table/renderer/basic.rb

#column_widthsArray[Integer]

Parses supplied column widths, if not present calculates natural widths.

Returns:

  • (Array[Integer])
[View source]

136
137
138
# File 'lib/tty/table/renderer/basic.rb', line 136

def column_widths
  @column_widths = Columns.widths_from(table, @column_widths)
end