Thursday, September 15, 2011

Ctrl+C to exit from exception ruby


rescue SystemExit, Interrupt
  raise
rescue Exception => e
 
#...
end

you can use SystemExit, Interrupt classes to exit from script with Ctrl+C