Class: Percheron::Formatters::Stack::Table

Inherits:
Object
  • Object
show all
Defined in:
lib/percheron/formatters/stack/table.rb

Instance Method Summary collapse

Constructor Details

#initialize(stack) ⇒ Table



8
9
10
11
# File 'lib/percheron/formatters/stack/table.rb', line 8

def initialize(stack)
  @stack = stack
  @queue = Queue.new
end

Instance Method Details

#generateObject



13
14
15
# File 'lib/percheron/formatters/stack/table.rb', line 13

def generate
  Terminal::Table.new(title: title, headings: headings, rows: rows)
end