Messenger
Encapsulates sending messages to CLR class or instance isolations
deliver the message to the receiving isolation
# File lib/caricature/clr/messenger.rb, line 9
9: def internal_deliver(mode, method_name, return_type, *args, &b)
10: exp = expectations.find(method_name, mode, *args)
11: is_value_type = return_type && return_type != System::Void.to_clr_type && return_type.is_value_type
12: res = nil
13: if exp
14: res = instance.__send__(method_name, *args, &b) if exp.super_before?
15: res = exp.execute *args
16: res = instance.__send__(method_name, *args, &b) if !exp.super_before? and exp.call_super?
17: end
18: res ||= System::Activator.create_instance(return_type) if is_value_type
19: res
20: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.