Parent

Methods

Mocha::Call

Attributes

blocks[R]

Public Class Methods

new(*blocks) click to toggle source
# File lib/debugger/test/mocha_extensions.rb, line 54
def initialize(*blocks)
  @blocks = [ *blocks ]
end

Public Instance Methods

+(other) click to toggle source
# File lib/debugger/test/mocha_extensions.rb, line 66
def +(other)
  self.class.new(*(@blocks + other.blocks))
end
next(arguments, &block) click to toggle source
# File lib/debugger/test/mocha_extensions.rb, line 58
def next(arguments, &block)
  case @blocks.length
    when 0 then nil
    when 1 then @blocks.first.call(*arguments, &block)
    else @blocks.shift.call(*arguments, &block)
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.