Class: Percheron::Formatters::Stack::Table
- Inherits:
-
Object
- Object
- Percheron::Formatters::Stack::Table
- Defined in:
- lib/percheron/formatters/stack/table.rb
Instance Method Summary collapse
- #generate ⇒ Object
-
#initialize(stack) ⇒ Table
constructor
A new instance of Table.
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
#generate ⇒ Object
13 14 15 |
# File 'lib/percheron/formatters/stack/table.rb', line 13 def generate Terminal::Table.new(title: title, headings: headings, rows: rows) end |