search for: orig_exit

Displaying 1 result from an estimated 1 matches for "orig_exit".

Did you mean: orig_eip
2006 Mar 12
1
alias_method interferes ApplicationHelper
...alias_method(new_name, old_name) => self ------------------------------------------------------------------------ Makes _new_name_ a new copy of the method _old_name_. This can be used to retain access to methods that are overridden. module Mod alias_method :orig_exit, :exit def exit(code=0) puts "Exiting with code #{code}" orig_exit(code) end end include Mod exit(99) _produces:_ Exiting with code 99 -- sig "kind regards" :name => " Arie Kus...