Object
# File lib/raisers/base.rb, line 12 def log(exception, raising) return if @logger.nil? @logger.debug("Raiser") { "#{"not " unless raising}raising: #{exception.class.name}" } end
Returns true if an exception ought to be raised.
# File lib/raisers/base.rb, line 6 def raise?(exception) false.tap do |raising| log(exception, raising) end end
[Validate]
Generated with the Darkfish Rdoc Generator 2.