Re:Github Ruby Styleguide
by lloeki on Wednesday December 12, 2012 @10:00AM
(#4910323)
More precisely && and || are meant to stand in boolean tests, whereas and and or are meant to tie expressions together DSL style, as an alternative to if/then, like so:
[ Parent
| on HN ]
That's a good example
shirt.blue? and return bar
would be equivalent to return bar if shirt.blue?
You can do the same with or and unless.