From: 7stud -- Date: 2009-08-27T01:21:42+09:00 Subject: Re: ||= with 1.8 and 1.9 ? >> In ruby 1.8, an attribute writer method (:foo=) always(*) returns the >> value of its argument, rather than the last value calculated in the >> method, so that you can tell by inspection that >> >> a = foo.bar = 123 >> >> will set a to 123. Perhaps it has been decided to change that for 1.9. >> > > If so, then David Black didn't know about it: > Whoops. I didn't see the change from = to ||= in the code. So nothing has changed from 1.8.6 to 1.9.1 with respect to = methods. The change is in the behavior of ||=. Those quotes from the Well Grounded Rubyist don't apply to ||=. -- Posted via http://www.ruby-forum.com/.