January 27, 2015 by Daniel P. Clark

or

Truthiness Both or and || will return the first item that evaluates as true from the left side to the right.

In Ruby any Object that exists is considered true.  The only exceptions are false itself and nil.

Even unassigned symbols are considered true.

So whenever an or comparison is done only…

Continue Reading »