execution is transferred to a different program, and the current program ceases immediately-the second line is never executed. : exec « Development « Ruby






execution is transferred to a different program, and the current program ceases immediately-the second line is never executed.

exec "ruby another_script.rb"
puts "This will never be displayed"

 

Related examples in the same category