class RSpec::Mocks::MethodDouble

def add_stub(error_generator, expectation_ordering, expected_from, opts={}, &implementation)

Other tags:
    Private: -
def add_stub(error_generator, expectation_ordering, expected_from, opts={}, &implementation)
  configure_method
  stub = message_expectation_class.new(error_generator, expectation_ordering, expected_from,
                                       self, :stub, opts, &implementation)
  stubs.unshift stub
  stub
end