vendor/gems/flexmock-0.8.5/lib/flexmock/expectation.rb
def return_value(args)
      case @return_queue.size
      when 0
        block = lambda { |*args| @return_value }
      when 1
        block = @return_queue.first
      else
        block = @return_queue.shift
      end
      block.call(*args)
    end
# Find the return value for this expectation. (private version)
Find the return value for this expectation. (private version)
Find the return value for this expectation . ( private version )
def return_value(args)
      case @return_queue.size
      when 0
        block = lambda { |*args| @return_value }
      when 1
        block = @return_queue.first
      else
        block = @return_queue.shift
      end
      block.call(*args)
    end
def return_value ( args ) case @return_queue . size when 0 block = lambda { | * args | @return_value } when 1 block = @return_queue . first else block = @return_queue . shift end block . call ( * args ) end
Find the return value for this expectation.
Find the return value for this expectation .
args