Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUBY

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. :)
Source by www.honeybadger.io #
 
PREVIOUS NEXT
Tagged: #exit #program #ruby
ADD COMMENT
Topic
Name
7+6 =