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:0x117bca0>
>> foo.show
"hi! I am there."
"hi"
=> "hi"
>>

-- 
Posted via http://www.ruby-forum.com/.