class StandardError

Public Class Methods

with() { |$!| ... } click to toggle source
# File lib/rescue-with.rb, line 1
def StandardError.with
  self === $! ? yield($!) : fail
end