From: Farrel Lifson Date: 2007-01-16T22:05:49+09:00 Subject: Re: where to find info on ||= operator ? On 16/01/07, Josselin wrote: > I am using > > http://www.ruby-doc.org/docs/ProgrammingRuby/ > > a sa reference manual, but could not find info on that operator (how > to use it..) > > tfyl > > joss > > > a ||= b is equivalent to a = a || b If a is nil it will be set to b. If it is not nil it will remain unchanged. Farrel