From: "Randy W. Sims" Date: 2004-09-13T17:09:16+09:00 Subject: Re: Singleton method on object via define_method? Hal Fulton wrote: > trans. (T. Onoma) wrote: > >>> >>> I really think it's just a class. It has special uses, perhaps, but I >>> don't >>> think it's treated specially. I can't see that it's anything other >>> than a >>> real Class. >> >> >> Except that it is tied to the object and not the class hierarchy. So >> it is 'virtually' a class, but not quite ;) >> > > You can't create an instance of it, and you can't subclass it. > Those are the only differences I'm aware of with other classes. > > The class Class can't be subclassed either. Is Class not a real class? > It is. It's just a special case. Sounds sort of like a traits[1] or what Perl 6 refers to as roles[2][3]. But, then this is deeper Ruby than I'm familiar with. Randy. 1. 2. 3.