Class: Mocha::Call

### Home Classes Methods

### In Files

- lib/debugger/test/mocha_extensions.rb

### Parent

Object

### Methods

- ::new
- #+
- #next

### Class/Module Index

Quicksearch

- Debugger
- Debugger::AddBreakpoint
- Debugger::Breakpoint
- Debugger::Context
- Debugger::ContinueCommand
- Debugger::DeleteBreakpointCommand
- Debugger::FinishCommand
- Debugger::HelpCommand
- Debugger::IRBCommand
- Debugger::InfoCommand
- Debugger::JumpCommand
- Debugger::KillCommand
- Debugger::ListCommand
- Debugger::LocalInterface
- Debugger::LocalInterface::Debugger
- Debugger::MethodCommand
- Debugger::MethodSigCommand
- Debugger::NextCommand
- Debugger::ParseFunctions
- Debugger::Processor
- Debugger::QuitCommand
- Debugger::ReloadCommand
- Debugger::SetCommand
- Debugger::ShowCommand
- Debugger::SkipCommand
- Debugger::SourceCommand
- Debugger::StepCommand
- Debugger::VarClassVarCommand
- Debugger::VarInheritCommand
- Debugger::VarLocalCommand
- Debugger::WhereCommand
- Printers
- Printers::Base
- Printers::Base::MissedArgument
- Printers::Base::MissedPath
- Printers::Plain
- Mocha
- Mocha::Call
- Mocha::Expectation
- Mocha::Mock
- MiniTest
- MiniTest::Assertions
- MiniTest::Expectations
- TestDsl
- TestDsl::ClassMethods
- TestDsl::Shared
- Kernel
- Module
- PrinterHelpers
- TestInterface

No matching classes.

# 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.