public Method

Kernel.suppress(*exception_classes) { || ... }

There's no documentation for this item.

Source Code

# File 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
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.