Module: Terminal::Table::TableHelper

Defined in:
lib/terminal-table/table_helper.rb

Instance Method Summary collapse

Instance Method Details

#table(headings = [], *rows, &block) ⇒ Object



4
5
6
# File 'lib/terminal-table/table_helper.rb', line 4

def table headings = [], *rows, &block
  Terminal::Table.new :headings => headings.to_a, :rows => rows, &block
end