From: ara.t.howard@... Date: 2006-10-12T05:25:36+09:00 Subject: Re: Singleton Class Constants On Thu, 12 Oct 2006 dblack@wobblini.net wrote: > I prefer it without that, since that makes it deviate from the #class > method, which it's otherwise precisely parallel to. I'd rather that > singleton_class work like class than that it work like class_eval. > Otherwise you've got a situation where all classes except singleton > classes have to call class_eval, and I don't see any grounds for > granting that privilege. > > (I know we've hashed through this before, and don't agree; I just > wanted to summarize the dissident position :-) hmm. i don't disagree completely - i would just say that those other methods, 'class' for example, should take blocks. blocks are 25% of the reason ruby is so beautiful and clean looking. compare def foobar class{ attr 'added_a_class_attr' } end with def foobar class.class_eval{ attr 'added_a_class_attr' } end one word, i realize, but open{} only saves a close too - they add up! cheers. -a -- my religion is very simple. my religion is kindness. -- the dalai lama