class RSpec::Mocks::AndReturnImplementation
@private
Handles the implementation of an ‘and_return` implementation.
def arity
def arity -1 end
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