Created
March 7, 2014 19:10
-
-
Save jpterry/9417799 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# bad | |
begin | |
# calls to exit and kill signals will be caught (except kill -9) | |
exit | |
rescue Exception | |
puts "you didn't really want to exit, right?" | |
# exception handling | |
end | |
loop do | |
#nothing forever | |
end | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment