Module: Bogus::ProxiesMethodCalls

Included in:
Double, HaveReceivedMatcher, StubsConfiguration
Defined in:
lib/bogus/proxies_method_calls.rb

Instance Method Summary collapse

Instance Method Details

#proxy(method_name) ⇒ Object



3
4
5
6
7
# File 'lib/bogus/proxies_method_calls.rb', line 3

def proxy(method_name)
  MethodCallProxy.new do |name, *args, &return_value|
    __send__(method_name, name, *args, &return_value)
  end
end