On Tue, 2003-04-08 at 13:36, Bill Kelly wrote: > > From: "Travis Whitton" <whitton / atlantic.net> > > > > I've looked in the RubyStyleGuide on the Wiki, and I don't see this addressed. > > When initializing variables in classes, is it more common to line up `=' or > > just leave them alone? > > I personally enjoy: > > class SomePerson > def initialize(name, age, birthdate) > @name, @age, @birthdate = name, age, birthdate > end > end Which is fine until you need to remove @age. Instead of ^kk (emacs) or dd (vi), you have to get in there and dig it out. The same applies for renaming the variable. 'course opinions are... Regards, JJ