From: aero6dof@... (Alan Chen) Date: 2004-05-28T22:00:21+09:00 Subject: Re: Struct derivation Philipp Kern wrote in message news:... > Hi Ruby folks. > > It's impossible to me to inherit a class from Struct when the class does not > share its constructor with the Struct superclass. > Struct implements .new on its own, instead of properly implementing it by > initialize, so the following is impossible: > > >>> snip >>> > class X < Struct > def initialize; super(:foo, :bar); end > end > I could be wrong, but I think you actually want: class X < Struct.new(:foo,:bar) def initialize; end end Or are you trying to create a new class X which can build new classes like struct?