module RSpec::Mocks::AnyInstance

def __recorder

def __recorder
  @__recorder ||= AnyInstance::Recorder.new(self)
end

def any_instance

def any_instance
  RSpec::Mocks::space.add(self)
  __recorder
end

def rspec_verify

def rspec_verify
  __recorder.verify
  super
ensure
  __recorder.stop_all_observation!
  @__recorder = nil
end