From: J2M Date: 2006-11-13T01:40:50+09:00 Subject: Re: Can Ruby do this magic... elegantly I got the final solution down to this which I think is rather elegant; class Bas < Struct.new :attribute, :another_attribute class << self attr_accessor *Bas.members end end I love this languate; and now really appreciate the power of the singleton class. Thanks.