From: Tukai Patra Date: 2013-03-01T00:37:36+09:00 Subject: Re: Discussion on Ruby's `alias` Humm! That means in a large code-base, `alias` might be dangerous,where if someone do the same what I did above. Now my question is - is there any replacement of such `alias` which can do the same what `alias` does above? any replacement of the below functionality which alias does with risk incurred with it. >> class Foo >> def show >> p "hi" >> end >> end => nil >> class Foo >> alias :old_show :show >> def show >> p "hi! I am there." >> old_show >> end >> end => nil >> foo = Foo.new => # >> foo.show "hi! I am there." "hi" => "hi" >> -- Posted via http://www.ruby-forum.com/.