From: Mathieu Bouchard Date: 2001-05-09T03:40:52+09:00 Subject: [ruby-talk:14877] Re: How do I alias a class method? On Wed, 9 May 2001, Sean Russell wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > Je Sabato 05 Majo 2001 17:17, vi skribis: > > Colin Steele wrote: > > > Subject says it all... How do I alias a class method? > ... > > class < > alias :baz :bar > > end > This should be "alias_method", shouldn't it? possibly; but "alias" is not only a name that is different, it is not calling a method, it is a reserved word. Notice that there is no comma between the two arguments! I would guess it was created this way because it was the first such feature added in Ruby, but Matz should know the story quite exactly :-) matju