From: Mike Cargal Date: 2008-06-13T07:05:42+09:00 Subject: Re: ||= careful.. this is really... if not a a = b end (it will assign b if a resolves to false as a boolean (i.e. either nil or false) On Jun 12, 2008, at 1:57 AM, Damjan Rems wrote: > Justin To wrote: >> what does ||= do? > > In other languages you would code this something like: > > if a == nil > a = b > end > > > by > TheR > -- > Posted via http://www.ruby-forum.com/. >