vendor/gems/assert2-0.5.5/lib/assert2.rb
#  the prock assertion must pass on both sides of the called block
#

the prock assertion must pass on both sides of the called block
the prock assertion must pass on both sides of the called block
def deny_yin_yang(*args, &block)
    procks, diagnostic = args.partition{|p| p.respond_to? :call }
    block ||= procks.shift
    source = reflect_source(&block)
    fuss = [diagnostic, "fault before calling:", source].compact.join("\n")
    procks.each do |prock|  assert(fuss, &prock);  end
    block.call
    fuss = [diagnostic, "fault after calling:", source].compact.join("\n")
    procks.each do |prock|  assert(fuss, &prock);  end
  end
def deny_yin_yang ( * args , & block ) procks , diagnostic = args . partition { | p | p . respond_to? :call } block ||= procks . shift source = reflect_source ( & block ) fuss = [ diagnostic , "fault before calling:" , source ] . compact . join ( "\n" ) procks . each do | prock | assert ( fuss , & prock ) ; end block . call fuss = [ diagnostic , "fault after calling:" , source ] . compact . join ( "\n" ) procks . each do | prock | assert ( fuss , & prock ) ; end end
the prock assertion must pass on both sides of the called block
the prock assertion must pass on both sides of the called block
# prock(s), diagnostic = nil, &block)

args
<not_specific>
block
<not_specific>