From: Robert Klemme Date: 2013-02-28T21:40:54+09:00 Subject: Re: Discussion on Ruby's `alias` On Thu, Feb 28, 2013 at 1:34 PM, Tukai Patra wrote: >>> 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" >>> > > The above code is very fine. But looking for if possible to call that > `old_show` method by the object of `Foo` from `IRB main` as we called > `foo.show`? - Is this possible? You _did_ call #old_show. Cheers robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/