Object
# File lib/mocha/exception_raiser.rb, line 5 def initialize(exception, message) @exception, @message = exception, message end
# File lib/mocha/exception_raiser.rb, line 9 def evaluate raise @exception, @exception.to_s if @exception.is_a?(Module) && @exception.ancestors.include?(Interrupt) raise @exception, @message if @message raise @exception end
[Validate]
Generated with the Darkfish Rdoc Generator 2.