Object
Handles the implementation of an `and_return` implementation. @private
# File lib/rspec/mocks/message_expectation.rb, line 490 def initialize(values_to_return) @values_to_return = values_to_return end
# File lib/rspec/mocks/message_expectation.rb, line 494 def arity 0 end
# File lib/rspec/mocks/message_expectation.rb, line 498 def call(&block) if @values_to_return.size > 1 @values_to_return.shift else @values_to_return.first end end
[Validate]
Generated with the Darkfish Rdoc Generator 2.