mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00

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.
8 lines
107 B
Ruby
8 lines
107 B
Ruby
class Exception
|
|
attr_accessor :continuation
|
|
|
|
def restart(&block)
|
|
continuation.call block
|
|
end
|
|
end
|