Parent

Files

Caricature::RubyMessenger

Encapsulates sending messages to Ruby isolations

Protected Instance Methods

internal_deliver(mode, method_name, return_type, *args, &b) click to toggle source

implementation of the template method for looking up the expectation and/or returning a value

    # File lib/caricature/messenger.rb, line 44
44:       def internal_deliver(mode, method_name, return_type, *args, &b)   
45:         exp = expectations.find(method_name, mode, *args)
46:         if exp
47:           res = instance.__send__(method_name, *args, &b) if exp.super_before?
48:           res = exp.execute *args
49:           res = instance.__send__(method_name, *args, &b) if !exp.super_before? and exp.call_super?
50:           res
51:         else
52:           nil
53:         end
54:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.