class Mocha::ClassMethods::AnyInstance

@private

def initialize(klass)

def initialize(klass)
  @stubba_object = klass
end

def mocha(instantiate = true)

def mocha(instantiate = true)
  if instantiate
    @mocha ||= Mocha::Mockery.instance.mock_impersonating_any_instance_of(@stubba_object)
  else
    defined?(@mocha) ? @mocha : nil
  end
end

def respond_to?(symbol, include_all = false)

def respond_to?(symbol, include_all = false)
  @stubba_object.allocate.respond_to?(symbol.to_sym, include_all)
end

def stubba_class

def stubba_class
  @stubba_object
end

def stubba_method

def stubba_method
  Mocha::AnyInstanceMethod
end