method
suppress

suppress(*exception_classes)
public
Hide source
# File activesupport/lib/active_support/core_ext/kernel/reporting.rb, line 45 def suppress(*exception_classes) begin yield rescue Exception => e raise unless exception_classes.any? { |cls| e.kind_of?(cls) } end end