Class: Inspec::UI::TableHelper

Inherits:
TTY::Table
  • Object
show all
Defined in:
lib/inspec/ui_table_helper.rb

Instance Method Summary collapse

Instance Method Details

#header=(ary) ⇒ Object



6
7
8
9
# File 'lib/inspec/ui_table_helper.rb', line 6

def header=(ary)
  cells = ary.dup.map { |label| { value: label, alignment: :center } }
  @header = TTY::Table::Header.new(cells)
end