From: Robert Klemme Date: 2007-02-26T19:10:06+09:00 Subject: Re: Extending object instances with << On 26.02.2007 02:38, Ken Bloom wrote: > On Sat, 24 Feb 2007 14:08:19 +0100, Robert Klemme wrote: >> Major difference is that you do not explicitly control accessor creation >> but automatically get *all* - even spelling errors. > > Test=Struct.new(*syms) > or > Test=Struct.new(:foo,:bar,:baz) > > This will guard you against spelling errors. That's true. However, I interpreted the OP's posting that he needs to to the extension on a per instance basis. That does not work with the approach you presented. Kind regards robert