Class: Smithy::Format::Table
- Inherits:
-
Object
- Object
- Smithy::Format::Table
- Defined in:
- lib/smithy/format.rb
Instance Method Summary collapse
Instance Method Details
#after ⇒ Object
88 89 90 |
# File 'lib/smithy/format.rb', line 88 def after puts @@table.to_s end |
#before ⇒ Object
80 81 82 |
# File 'lib/smithy/format.rb', line 80 def before @@table = Terminal::Table.new :headings => %w(Build LastModified Username Name) end |
#format(software, root) ⇒ Object
83 84 85 86 87 |
# File 'lib/smithy/format.rb', line 83 def format(software, root) software.each do |s| @@table << Smithy::Format.software_row(s) end end |