From: ara.t.howard@... Date: 2006-10-12T04:03:55+09:00 Subject: Re: Singleton Class Constants On Thu, 12 Oct 2006 jdance@gmail.com wrote: > > class Object > def singleton_class > class << self; self; end > end > end fyi. i prefer class Object def singleton_class &block sc = class << self; self; end block ? sc.module_eval(&block) : sc end end for it allows class C singleton_class{ attr 'a' alias_method 'b', 'a' } end regards. -a -- my religion is very simple. my religion is kindness. -- the dalai lama