Sha256: f0ac4daea44944565038d52b18fbb99a547334bb0d91c9c774a9a6df4fce9d23
Contents?: true
Size: 456 Bytes
Versions: 2
Compression:
Stored size: 456 Bytes
Contents
require_relative "confidence_check_failed" module ConfidenceCheck module CheckMethod def confidence_check(context=nil, &block) if block.nil? raise "#confidence_check requires a block" end block.() rescue Exception => ex $stdout.puts context.inspect if context if exception_klasses.any? {|_| ex.kind_of?(_) } raise ConfidenceCheckedFailed.new(ex) else raise end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
confidence-check-1.0.1 | lib/confidence_check/check_method.rb |
confidence-check-1.0.0 | lib/confidence_check/check_method.rb |