# File lib/rspec/mocks/method_double.rb, line 155
      def add_stub(error_generator, expectation_ordering, expected_from, opts={}, &implementation)
        configure_method
        stub = MessageExpectation.new(error_generator, expectation_ordering, expected_from, @method_name, nil, :any, opts, &implementation)
        stubs.unshift stub
        stub
      end