class XSpec::Evaluator::Doubles::Proxy
The proxy object captures messages sent to it and passes them through to either the `_verify` of `_stub` method on the double.
Public Class Methods
new(double, method)
click to toggle source
# File lib/xspec/evaluators.rb, line 167 def initialize(double, method) @double = double @method = method end
Public Instance Methods
method_missing(*args, &ret)
click to toggle source
# File lib/xspec/evaluators.rb, line 172 def method_missing(*args, &ret) @double.__send__(@method, args, &(ret || ->{})) end