From: ts Date: 2003-09-17T00:43:00+09:00 Subject: Re: How to alias a class method >>>>> "D" == Dmitry V Sabanin writes: D> Following code is not working: D> alias :orig_get_abc, :get_abc 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