# File lib/rspec/mocks/message_expectation.rb, line 74 def and_return(*values, &implementation) @expected_received_count = [@expected_received_count, values.size].max unless ignoring_args? || (@expected_received_count == 0 and @at_least) if implementation # TODO: deprecate `and_return { value }` @implementation = implementation else @values_to_return = values @implementation = build_implementation end end