Method: VagrantPlugininspection::UI::Columnized::Layout#column

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

#column(key, opts = nil) ⇒ Object

Adds a column definition to the current position



28
29
30
31
32
33
34
35
# File 'lib/vagrant-plugins/ui.rb', line 28

def column(key, opts=nil)
  defaults = { :name => key.to_s }
  opts     = defaults.merge(opts || {})

  @heads[key] = opts[:name]
  @columns[key] = opts
  @stack << key
end