class RSpec::Mocks::AndReturnImplementation
@private
Handles the implementation of an ‘and_return` implementation.
def call(*_args_to_ignore, &_block)
def call(*_args_to_ignore, &_block) if @values_to_return.size > 1 @values_to_return.shift else @values_to_return.first end end
def initialize(values_to_return)
def initialize(values_to_return) @values_to_return = values_to_return end