how to check if a value exists in an array ruby code example Example: ruby array has element >> ['Cat', 'Dog', 'Bird'].include? 'Dog' => true