Class: Smithy::Format::Table

Inherits:
Object
  • Object
show all
Defined in:
lib/smithy/format.rb

Instance Method Summary collapse

Instance Method Details

#afterObject



88
89
90
# File 'lib/smithy/format.rb', line 88

def after
  puts @@table.to_s
end

#beforeObject



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