Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Stop execution of Ruby script

Tags:

ruby

Is there a method like exit or die in PHP which stops the execution of a Ruby script?

like image 664
adaxa Avatar asked Dec 13 '10 19:12

adaxa


People also ask

How do I exit Ruby shell?

Type quit() and hit Enter to exit ruby.

What is script in Ruby?

Ruby is a powerful scripting language. Scripts can be used to automate tasks such as creating and searching files and managing and organizing subdirectories. Companies like GitHub, Chef and Puppet use Ruby for scripting. Devops teams use scripting to combine development and operations.


1 Answers

Either abort or exit will help.

like image 128
Icid Avatar answered Oct 06 '22 01:10

Icid