From: Austin Ziegler Date: 2005-07-30T03:30:13+09:00 Subject: Re: What does this assignment operator |= On 7/29/05, Stefan Achatz wrote: > Hello, > i think i once saw an assignment operator |= used in a ruby program. > I can't find anything in the pickaxe-book and on google. > What does it do? > Thanks, Stefan It does the same as foo = foo | bar, where | is the bitwise operator. It's more common to see foo ||= bar, which is foo = foo || bar. -austin -- Austin Ziegler * halostatue@gmail.com * Alternate: austin@halostatue.ca