Class: Hirb::Helpers::Table::Resizer

### Home Classes Methods

### In Files

- lib/hirb/helpers/table/resizer.rb

### Parent

Object

### Methods

- ::resize!

### Files

- LICENSE.txt
- README.rdoc

### Class/Module Index

Quicksearch

- Hirb
- Hirb::Console
- Hirb::DynamicView
- Hirb::Formatter
- Hirb::Helpers
- Hirb::Helpers::AutoTable
- Hirb::Helpers::ObjectTable
- Hirb::Helpers::ParentChildTree
- Hirb::Helpers::Table
- Hirb::Helpers::Table::Filters
- Hirb::Helpers::Table::Resizer
- Hirb::Helpers::Table::TooManyFieldsForWidthError
- Hirb::Helpers::Tree
- Hirb::Helpers::Tree::Node
- Hirb::Helpers::Tree::Node::MissingLevelError
- Hirb::Helpers::Tree::Node::MissingValueError
- Hirb::Helpers::Tree::ParentlessNodeError
- Hirb::Helpers::VerticalTable
- Hirb::Menu
- Hirb::Menu::Error
- Hirb::ObjectMethods
- Hirb::Pager
- Hirb::String
- Hirb::Util
- Hirb::View
- Hirb::Views

No matching classes.

# 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.