Method: VagrantPlugininspection::UI::Columnized::Layout#initialize

Defined in:
lib/vagrant-plugins/ui.rb

#initialize(simple = nil) ⇒ Layout

Returns a new instance of Layout.

Parameters:

  • _optional_ (Array)

    Array with column names for a simple layout. Columns will be seperated by tab.



16
17
18
19
20
21
22
23
24
25
# File 'lib/vagrant-plugins/ui.rb', line 16

def initialize(simple=nil)
  simple.each { |column|
    self.column(column)
    self.seperator("\t")
  } if simple

  @heads   = Hash.new
  @columns = Hash.new
  @stack   = Array.new
end