Sha256: 408926b44a64ded346e429a237850820b465ad71a87c81a0d5133aaaa0598843

Contents?: true

Size: 209 Bytes

Versions: 11

Compression:

Stored size: 209 Bytes

Contents

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

11 entries across 11 versions & 1 rubygems

Version Path
cap-util-1.1.0 lib/cap-util/unset_var.rb
cap-util-1.0.1 lib/cap-util/unset_var.rb
cap-util-1.0.0 lib/cap-util/unset_var.rb
cap-util-1.0.0.rc1 lib/cap-util/unset_var.rb
cap-util-0.4.0 lib/cap-util/unset_var.rb
cap-util-0.3.0 lib/cap-util/unset_var.rb
cap-util-0.2.1 lib/cap-util/unset_var.rb
cap-util-0.2.0 lib/cap-util/unset_var.rb
cap-util-0.1.2 lib/cap-util/unset_var.rb
cap-util-0.1.1 lib/cap-util/unset_var.rb
cap-util-0.1.0 lib/cap-util/unset_var.rb