Ruby does string equal one of the strings in an array of strings?
arrays, ruby, string
Solution
["string1","mystring","string2"].include? "mystring"
See: Enumerable#include?
Problem
Is there an easy way to sort of call something similar to the database In query? Does "mystring" exist in ["string1","mystring","string2"] => would return true Does "mystring" exist in ["string1","string2","string3"] => would return false