From: Paul Danese Date: 2007-11-06T21:12:04+09:00 Subject: Re: operator |= You might be thinking about ||= ||= assigns a value to a variable if the variable is nil e.g. x = 5 x ||= 88 x #=> 5 y = nil y ||= 88 y # => 88 I believe a |= b "ORs" the bits in a and b and assigns them to a -----Original Message----- From: news [mailto:news@ger.gmane.org] On Behalf Of Fernando Cacciola Sent: Tuesday, November 06, 2007 6:58 AM To: ruby-talk ML Subject: operator |= Hi people, Did I dream about an opeartor |=? I can't find any reference to it in the online docs, yet I think I've seen it in some samples. What does it do? TIA -- Fernando Cacciola SciSoft http://fcacciola.50webs.com This email and any attached files are confidential and intended solely for the intended recipient(s). If you are not the named recipient you should not read, distribute, copy or alter this email. Any views or opinions expressed in this email are those of the author and do not represent those of the company. Warning: Although precautions have been taken to make sure no viruses are present in this email, the company cannot accept responsibility for any loss or damage that arise from the use of this email or attachments.