From: Rick DeNatale Date: 2009-05-06T21:05:59+09:00 Subject: Re: '=||' On Wed, May 6, 2009 at 6:54 AM, Eleanor McHugh wrote: > On 6 May 2009, at 02:31, Rick DeNatale wrote: >> >> On Tue, May 5, 2009 at 8:45 PM, Eleanor McHugh >> wrote: >>> > > Notice how even though method_missing returns a value and is thus 'true' the > sequence still attempts all parts of the expression, and I should have mentioned in my reply that since your method missing body consists of a single puts statement, and since puts returns nil, that value is non-truthy and nil || x is x which is why the []= gets sent in your example. -- Rick DeNatale Blog: http://talklikeaduck.denhaven2.com/ Twitter: http://twitter.com/RickDeNatale WWR: http://www.workingwithrails.com/person/9021-rick-denatale LinkedIn: http://www.linkedin.com/in/rickdenatale