E
Elite Force
Hello,
I'm kinda new to ruby and have a few questions.
If i run a ruby script it can be interrupted with ^c or signals (e.g.
killall ruby"). Is it possible to catch those to do cleanup stuff before
exiting?
Whats the difference between { ... } and do ... end? Are they both
blocks? When to use what?
I'd really appreciate it if you could answer my questions, thanks.
I'm kinda new to ruby and have a few questions.
If i run a ruby script it can be interrupted with ^c or signals (e.g.
killall ruby"). Is it possible to catch those to do cleanup stuff before
exiting?
Whats the difference between { ... } and do ... end? Are they both
blocks? When to use what?
I'd really appreciate it if you could answer my questions, thanks.