The include? method returns true if the supplied parameter is in the array, and false otherwise:
x = [1, 2, 3] p x.include?("x") p x.include?(3)