Method: Spec::Mocks::Mock#method_missing
- Defined in:
- lib/spec/mocks/mock.rb
#method_missing(sym, *args, &block) ⇒ Object (private)
39 40 41 42 43 44 45 46 47 |
# File 'lib/spec/mocks/mock.rb', line 39 def method_missing(sym, *args, &block) __mock_proxy.(sym, args, block) begin return self if __mock_proxy.null_object? super(sym, *args, &block) rescue NameError __mock_proxy. sym, *args end end |