module RSpec::Mocks::Methods

def __mock_proxy

def __mock_proxy
  if Mock === self
    @mock_proxy ||= Proxy.new(self, @name, @options)
  else
    @mock_proxy ||= Proxy.new(self)
  end
end