Laurent Julliard Laurent.Julliard@xrce.xerox.com wrote in message news:3D53EC0C.email@example.com…
Are you aware of anyway to catch the end of a Ruby script execution when
there is no explicit exit instruction?
a) SystemExit seems to be raised only when ‘exit’ is used explicitely.
b) I have found a workaround to catch exit! as well by redefining
But what to do when there is no exit at all ?
Thanks for your help
How about using an END block?
In this example, I use an END block and its complementarhy BEGIN block:
puts ‘hello, world’
puts ‘Goodbye, cruel world.’
Goodbye, cruel world.