From: "Borja Martín" Date: 2007-06-16T07:00:53+09:00 Subject: Re: alias_method for static method Thanks a lot, it worked like a charm. dblack@wobblini.net escribió: > Hi -- > > On Sat, 16 Jun 2007, Borja Mart�n wrote: > >> Hi, >> I was wondering if it is possible to create aliases for class >> methods, as alias_method seems to work only for instance methods. >> Thanks in advance > > Class methods are singleton methods defined in a class's singleton > class. So, to get into the right scope you would do: > > class << YourClass > > and then you can use alias and/or alias_method. > > > David > -- /** * dagi3d v4 | http://dagi3d.net */