ruby check if array contains an element code example Example: ruby array has element >> ['Cat', 'Dog', 'Bird'].include? 'Dog' => true