Method: Terminal::Table::Row#initialize

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

#initialize(table, array = []) ⇒ Row

Initialize with width and options.



15
16
17
18
19
20
# File 'lib/terminal-table/row.rb', line 15

def initialize table, array = []
  @cell_index = 0
  @table = table
  @cells = []
  array.each { |item| self << item }
end