class Shoulda::Matchers::Doublespeak::ProxyImplementation
@private
Attributes
Public Class Methods
Source
# File lib/shoulda/matchers/doublespeak/proxy_implementation.rb, line 12 def self.create new(StubImplementation.new) end
Source
# File lib/shoulda/matchers/doublespeak/proxy_implementation.rb, line 16 def initialize(stub_implementation) @stub_implementation = stub_implementation end
Public Instance Methods
Source
# File lib/shoulda/matchers/doublespeak/proxy_implementation.rb, line 20 def call(call) return_value = call.double.call_original_method(call) stub_implementation.call(call.with_return_value(return_value)) return_value end