class RSpec::Mocks::AndInvokeImplementation

@private
Handles the implementation of an ‘and_invoke` implementation.

def call(*args, &block)

def call(*args, &block)
  proc = if @procs_to_invoke.size > 1
           @procs_to_invoke.shift
         else
           @procs_to_invoke.first
         end
  proc.call(*args, &block)
end

def initialize(procs_to_invoke)

def initialize(procs_to_invoke)
  @procs_to_invoke = procs_to_invoke
end