Displaying 1 result from an estimated 1 matches for "_old_name_".
2006 Mar 12
1
alias_method interferes ApplicationHelper
...end
end
--------------------
From ri -f bs alias:
---------------------------------------------------- Module#alias_method
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...