Parent

Methods

Hirb::Helpers::Table::Resizer

Resizes a table’s fields to the table’s max width.

Public Class Methods

resize!(table) click to toggle source

Modifies field_lengths to fit within width. Also enforces a table’s max_fields.

# File lib/hirb/helpers/table/resizer.rb, line 5
def self.resize!(table)
  obj = new(table)
  obj.resize
  obj.field_lengths
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.