Encapsulates sending messages to Ruby isolations
implementation of the template method for looking up the expectation and/or returning a value
# File lib/caricature/messenger.rb, line 52 52: def internal_deliver(mode, method_name, return_type, *args, &b) 53: exp = expectations.find(method_name, mode, *args) 54: bl = record_call(method_name, mode, exp, *args, &b) 55: if exp 56: block = exp.block || b 57: res = instance.__send__(method_name, *args, &block) if exp.super_before? 58: res = exp.execute *args, &bl 59: res = instance.__send__(method_name, *args, &block) if !exp.super_before? and exp.call_super? 60: res 61: else 62: nil 63: end 64: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.