From: Avi Bryant Date: 2001-02-27T15:02:35+09:00 Subject: [ruby-talk:11660] Re: RCR: shortcut for instance variable initialization On Tue, 27 Feb 2001, Dave Thomas wrote: > But, I agree it ain't pretty. It's just that those parallel > assignments are also a pain. Perhaps there's another way. How about something that'll generate the initializers for you - so that you could do class Foo initializer(:bar, :baz) do #other stuff for initialize to do end end You'd have to store the block and do an instance_eval on it, I guess, but it shouldn't be that complicated.