begin whatever coderescue whatever elseend
Code:
can we add something to the 'rescue' (method??) without touching that line (so it affect all rescue). whatever rescue whatever else(like redefine rescue)
i try:
module Kernelalias est_rescue rescueendbut no method error... where should i alias rescue to modify it's behavior
i also list all Kernel methods, protected_methods ,private_methods,singleton_methods
but cannot found rescue... where's the rescue placed anyway???
i want to do something if there's error happening (NameError, etc). i want it to delete file i generate at the start of the script...(i have the code for deletion part).