Parent

Methods

Caricature::RubyMessenger

Encapsulates sending messages to Ruby isolations

Public Instance Methods

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

deliver the message to the receiving isolation

# File lib/caricature/messaging.rb, line 29
    def deliver(method_name, return_type, *args, &b)
      exp = expectations.find(method_name, *args)
      if exp
        res = instance.__send__(method_name, *args, &b) if exp.super_before?
        res = exp.execute *args
        res = instance.__send__(method_name, *args, &b) if !exp.super_before? and exp.call_super?
        res
      else
        nil
      end
    end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.