I assume there is a nice one-line way to say in ruby
if mystr == \"abc\" or \"def \" or \"ghi\" or \"xyz\"
but cannot find how to do that i
You can use Array#include? like this:
Array#include?
if ["abc", "def ", "ghi", "xyz"].include?(mystr)