Parent

Methods

Class/Module Index [+]

Quicksearch

Mocha::ExceptionRaiser

Public Class Methods

new(exception, message) click to toggle source
# File lib/mocha/exception_raiser.rb, line 5
def initialize(exception, message)
  @exception, @message = exception, message
end

Public Instance Methods

evaluate() click to toggle source
# File lib/mocha/exception_raiser.rb, line 9
def evaluate
  raise @exception, @exception.to_s if @exception.is_a?(Module) && (@exception < Interrupt)
  raise @exception, @message if @message
  raise @exception
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.