From: Siddharth Reddy Date: 2011-09-29T02:12:50+09:00 Subject: Re: Ruby Syntax @keywords ||= [ ] --0015174413325b3bb804ae0380e8 Content-Type: text/plain; charset=ISO-8859-1 yes... please anyone asnwer the same! On Wed, Sep 28, 2011 at 10:37 PM, Bhavesh Sharma wrote: > Sorry if this comes across as a dumb question, but what does the > following syntax mean in ruby. > > @keywords ||= [] > > I understand that its setting the instance variable as an array but what > is the logical operator '||' doing in there. > > -- > Posted via http://www.ruby-forum.com/. > > --0015174413325b3bb804ae0380e8--