📜  退出程序 ruby 代码示例

📅  最后修改于: 2022-03-11 15:04:49.599000             🧑  作者: Mango

代码示例1
# 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. :)