What is the difference between exit and abort?
“Exit, Exit! Abort, Raise…Get Me Outta Here!” describes everything you’d want to know I think. In short: Kernel.exit(code) “exits” the script immediately and returns the code to the OS, however, just before doing it, it calls any registered at_exit handler that your code could have registered. Kernel.exit!(code) does the same, but exits immediatelly, no at_exit … Read more