brew/Library/Homebrew/debrew/exception.rb
Jack Nagel a75dd6e8a8 Split debrew up to faciliate test isolation
We want to be able to test the raise functionality without
monkey-patching #raise on every object in the system, which is one of
the side effects of loading debrew.rb.
2013-02-06 19:04:43 -06:00

8 lines
107 B
Ruby

class Exception
attr_accessor :continuation
def restart(&block)
continuation.call block
end
end