def enforce_contracts(contracts)
      outcome = contracts.call(context)

      unless outcome.success?
        contract.consequences.each do |handler|
          instance_exec(outcome.breaches, &handler)
        end
      end
    end
def enforce_contracts(contracts)
      outcome = contracts.call(context)

      unless outcome.success?
        contract.consequences.each do |handler|
          instance_exec(outcome.breaches, &handler)
        end
      end
    end
Checks for a breach of contract and applies consequences for a breach

 @api private
 @param [#call] contracts a callable object
 @return [void]