From: "Dmitry V. Sabanin" Date: 2003-09-17T11:31:18+09:00 Subject: Re: How to alias a class method On Tuesday 16 September 2003 23:43, ts wrote: > you need to be in the singleton class to make the alias > > svg% cat b.rb > #!/usr/bin/ruby > class Abc > def self.get_abc arg > puts "abc" > end > class << self > alias orig_get_abc get_abc > end > end > > Abc.orig_get_abc(12) > svg% > > svg% b.rb > abc > svg% > > Guy Decoux Very nice, thank you! :) -- sdmitry -=- Dmitry V. Sabanin MuraveyLabs.