From: laotse@... Date: 2001-06-28T19:49:10+09:00 Subject: [ruby-talk:16999] Re: using alias_method Thank you :) ----------------------------------------------------------------------------- Brian Knox Just Another Perl Hacker perl -le '$_="6110>374086;2064208213:90<307;55";tr[0->][ LEOR!AUBGNSTY];print' On Thu, 28 Jun 2001, Yukihiro Matsumoto wrote: > Hi, > > In message "[ruby-talk:16988] using alias_method" > on 01/06/28, laotse@lumberjack.snurgle.org writes: > > |At first I thought alias_method looked promising. Unfortunately, its a > |private instance method of module Module and I can't figure out any way to > |use it within a class. > > unless defined? self.hello_orig > self.type.class_eval{alias_method :hello_orig, :hello} > end > -- > matz. >