Class: Inventory::Presenter::Table
- Defined in:
- lib/inventory/presenters/table.rb
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from Inventory::Presenter::Base
Instance Method Details
#display ⇒ Object
4 5 6 7 8 9 |
# File 'lib/inventory/presenters/table.rb', line 4 def display table = Text::Table.new table.head = @data.shift table.rows = @data puts table end |