From: Justin Collins Date: 2013-02-23T06:23:35+09:00 Subject: Re: Not able to understand the difference between "||=" and "|=". On 02/22/2013 01:08 PM, Xavier R. wrote: > On the same road I tried to the "&&=" as below : > >>> a = [] > => [] >>> a &&= [4,1] > => [4, 1] >>> a &&= [42,111] > => [42, 111] >>> > > Couldn't reach to any summary. How does it work? > https://en.wikibooks.org/wiki/Ruby_Programming/Syntax/Operators#1._Assignment http://lesseverything.com/blog/archives/2008/12/16/guarded-assignment-in-ruby/