From: Mathieu Bouchard Date: 2001-05-15T11:39:49+09:00 Subject: [ruby-talk:15136] Re: How do I alias a class method? On Tue, 15 May 2001, David Alan Black wrote: > On Tue, 15 May 2001, Mathieu Bouchard wrote: > > A = Class.new(B) { > > blah > > } > > and similar things. > But then, again to be consistent, wouldn't that mean changing this: > class A; ... end > to this: > A = Class.new { ... } Yes, that's why I said similar things... Class#initialize would take (superclass=Object,&proc) as a parameter, that is, there'd be a default value. For accessing an already existing class, you'd have to use Class#class_eval or Module#module_eval... Oh, and: class << foo; ... end could change to: foo.singleton_eval { ... } matju