stubs (Mocha::ObjectMethods)

         # File lib/mocha/object.rb, line 90
     90:     def stubs(method_name_or_hash)
     91:       expectation = nil
     92:       mockery = Mocha::Mockery.instance
     93:       iterator = ArgumentIterator.new(method_name_or_hash)
     94:       iterator.each { |*args|
     95:         method_name = args.shift
     96:         mockery.on_stubbing(self, method_name)
     97:         method = stubba_method.new(stubba_object, method_name)
     98:         mockery.stubba.stub(method)
     99:         expectation = mocha.stubs(method_name, caller)
    100:         expectation.returns(args.shift) if args.length > 0
    101:       }
    102:       expectation
    103:     end