Slide 10
Slide 10 text
or || && and
http://devblog.avdi.org/2010/08/02/using-and-and-or-in-ruby/
and is useful for chaining
related operations together until
one of them returns nil or false
or is useful for chaining expressions together.
The best way to think about the chains
constructed with or is as series of fallbacks:
try this, if that fails try this, and so on. For
instance: