是否有单行函数调用退出程序并显示消息?我在Perl中知道它很简单:
die("Message goes here")
我厌倦了打字:
puts "Message goes here" exit
ruby
ruby ×1