In a case statement, a , is the equivalent of || in an if statement.
case car
when 'toyota', 'lexus'
# code
end
Some other things you can do with a Ruby case statement
In a case statement, a , is the equivalent of || in an if statement.
case car
when 'toyota', 'lexus'
# code
end
Some other things you can do with a Ruby case statement