From: itsme213 Date: 2005-10-03T17:36:46+09:00 Subject: Re: Cannot subclass Class? Hmmm. Here is what I want: module M # magic for #foo, #bar end class C include M # should do the equivalent of: # def C.foo(n); @foo = n; end # def bar; self.class.iv_get "@foo"; end foo 55 # end C.new.bar #=> 55 I'm having trouble getting this to work. Purely my limited prowess, I am sure ... "Florian Gro�" wrote in message news:dhq1al$1af$1@sea.gmane.org... > itsme213 wrote: > > > TypeError: can't make subclass of Class > > Are there other ways to define new meta-classes? > > You can subclass Module. Perhaps that is powerful enough? > > >