Answers for "how to stop ruby program exiting at error"

3

exit program ruby

# You can exit by calling a method
exit
exit!
abort("She cannot take any more of this, Captain!")

# ...or by failing to catch an exception
raise("Destroyed...")
fail

# ...or by letting the program end naturally. :)
Posted by: Guest on March-29-2020

Code answers related to "how to stop ruby program exiting at error"

Browse Popular Code Answers by Language