Here's a link for Ruby's operator expressions

http://phrogz.net/ProgrammingRuby/language.html

Joseph Gutierrez
Web Developer - Inc21
jgutierrez / inc21.com



Eleanor McHugh wrote:
> On 5 May 2009, at 20:51, James Byrne wrote:
>> Can someone point out to me where exactly in the API I find a discussion
>> of the '=||' operator?  Or am I imagining things and this does not
>> really exist?
>
>
> Are you referring to ||= ? If so it's one of the augmented assignment 
> operators so you won't find it documented separately as it's syntactic 
> sugar for:
>
> x = x || some_other_value
>
>
> Ellie
>
> Eleanor McHugh
> Games With Brains
> http://slides.games-with-brains.net
> ----
> raise ArgumentError unless @reality.responds_to? :reason
>
>
>
>

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.