Sha256: 0963d8bbcba4990979018f2eae4c3c783695ed5c5e0a72b8ba75690d1fc79c56

Contents?: true

Size: 234 Bytes

Versions: 3

Compression:

Stored size: 234 Bytes

Contents

require 'cap-util/halt'

module CapUtil
  module UnsetVar

    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

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
cap-util-1.4.0 lib/cap-util/unset_var.rb
cap-util-1.3.0 lib/cap-util/unset_var.rb
cap-util-1.2.0 lib/cap-util/unset_var.rb