Now, I may be doing it wrong, but Ruby has at_exit, which lets you run something when the program closes. Does RM, specifically Ace, support this? I tried testing it with
at_exit { puts "Closing!"; sleep(3) }but it didn't work. I'm wondering if I somehow managed to get something so simple wrong, or if RM doesn't support the function in Ruby at all. For anyone wondering about it, it's in Ruby's Kernerl, so it should work, right?
at_exit { puts "Closing!"; sleep(3) }but it didn't work. I'm wondering if I somehow managed to get something so simple wrong, or if RM doesn't support the function in Ruby at all. For anyone wondering about it, it's in Ruby's Kernerl, so it should work, right?