From: Mathieu Bouchard Date: 2001-02-27T09:39:59+09:00 Subject: [ruby-talk:11639] Re: RCR: shortcut for instance variable initialization On Tue, 27 Feb 2001, Dave Thomas wrote: > So, could we change parameter passing slightly so that if an instance > method has a formal parameter starting with an '@' sign, the incoming > value is assigned directly to the corresponding instance variable? > Using this scheme I could write the above as: > class Msg > def initialize(@name, @type, @txt) > end > end I agree with that change. This also makes an attribute writer something like: def some_attr=(@some_attr); end matju