From: Dave Thomas Date: 2001-08-25T22:49:43+09:00 Subject: [ruby-talk:20372] Re: attribute setting method white space, bug? zarkon_z@hotmail.com (Zarkon) writes: > def durationInMinutes=(value) > ...... > > I put in some extra white space like this > > def durationInMinutes = (value) > ...... > > I got the following result > > D:\ruby\ont\Song.rb:14: parse error > def durationInMinutes =(value) Well, say you had a method called move_piece. Would be be OK to add extra space in there too? def move _ piece(value) Probably not :) The '=' is effectively part of the method name (as are the ! and ? suffixes) and so should really be typed as such. Regards Dave