ruby array method to check if element is present code example Example: ruby array has element >> ['Cat', 'Dog', 'Bird'].include? 'Dog' => true