Sha256: 62246ee28c16520f67ab7a66313ab3c0dafa685faf2f5155958bb8e5ba109d9f
Contents?: true
Size: 336 Bytes
Versions: 28
Compression:
Stored size: 336 Bytes
Contents
module Mocha class ExceptionRaiser def initialize(exception, message) @exception, @message = exception, message end def evaluate raise @exception, @exception.to_s if @exception.is_a?(Module) && (@exception < Interrupt) raise @exception, @message if @message raise @exception end end end
Version data entries
28 entries across 24 versions & 5 rubygems