class Shoulda::Matchers::Doublespeak::ProxyImplementation

@private

Attributes

stub_implementation[R]

Public Class Methods

create() click to toggle source
# File lib/shoulda/matchers/doublespeak/proxy_implementation.rb, line 12
def self.create
  new(StubImplementation.new)
end
new(stub_implementation) click to toggle source
# File lib/shoulda/matchers/doublespeak/proxy_implementation.rb, line 16
def initialize(stub_implementation)
  @stub_implementation = stub_implementation
end

Public Instance Methods

call(call) click to toggle 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