|
|
|
|
|
by jeltz
5190 days ago
|
|
Indeed, "and" and "or" are excellent for their intended use, for control flow. Like explained by the style guide the Github one is based on. https://github.com/bbatsov/ruby-style-guide # boolean expression
if some_condition && some_other_condition
do_something
end
# control flow
document.saved? or document.save!
|
|