Skip to content
Snippets Groups Projects
Commit 1281a3f9 authored by Markus Reiter's avatar Markus Reiter
Browse files

Remove `kernel_at_exit_hacks.rb`.

parent bef2c6c9
No related branches found
No related tags found
No related merge requests found
module Kernel
alias real_at_exit at_exit
def at_exit(&block)
real_at_exit(&block) unless ENV["DISABLE_AT_EXIT"]
end
def with_disabled_at_exit
ENV["DISABLE_AT_EXIT"] = "1"
yield
ENV.delete("DISABLE_AT_EXIT")
end
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment