From: dblack@... Date: 2003-01-12T07:38:23+09:00 Subject: Re: Instance vars as arguments to initialize()? Hi -- On Sun, 12 Jan 2003, Jim Bob wrote: > In article , Jim Bob wrote: > > Wouldn't it be neater to be able to do "def initialize(@a, @b, > > @c);end" and be done with it? > > Well, to follow up to myself, I would have to say that wouldn't make a > whole lot of sense. initialize would have to be some kind of "special" > method to act like that, much more so than it is now. > > I've solved my "problem", such as it was, by writing a little Vim script > (using Ruby!) that, when called on a line like "A b c", builds a > class A > def initialize(b, c) > @b = b > @c = c > end > end > -type skeleton out of it. It was fun, too. Just for historical interest, you might want to have a look at the thread beginning at . David -- David Alan Black home: dblack@candle.superlink.net work: blackdav@shu.edu Web: http://pirate.shu.edu/~blackdav