Module: CapUtil::UnsetVar

Defined in:
lib/cap-util/unset_var.rb

Class Method Summary collapse

Class Method Details

.new(name, msg = nil) ⇒ Object



6
7
8
9
# File 'lib/cap-util/unset_var.rb', line 6

def self.new(name, msg = nil)
  halt_msg = msg ? ":#{name} var not set (#{msg})." : ":#{name} var not set."
  Proc.new { CapUtil.halt(halt_msg) }
end