class Shoulda::Matchers::Doublespeak::ProxyImplementation
Attributes
stub_implementation[R]
Public Class Methods
create()
click to toggle source
# File lib/shoulda/matchers/doublespeak/proxy_implementation.rb, line 11 def self.create new(StubImplementation.new) end
new(stub_implementation)
click to toggle source
# File lib/shoulda/matchers/doublespeak/proxy_implementation.rb, line 15 def initialize(stub_implementation) @stub_implementation = stub_implementation end
Public Instance Methods
call(double, object, args, block)
click to toggle source
# File lib/shoulda/matchers/doublespeak/proxy_implementation.rb, line 19 def call(double, object, args, block) stub_implementation.call(double, object, args, block) double.call_original_method(object, args, block) end