Parent

Methods

Class/Module Index [+]

Quicksearch

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(double, object, args, block) click to toggle source
# File lib/shoulda/matchers/doublespeak/proxy_implementation.rb, line 20
def call(double, object, args, block)
  stub_implementation.call(double, object, args, block)
  double.call_original_method(object, args, block)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.