Rails 5 introduces Array Inquirerthat wraps an array object and provides friendlier methods to check for thepresence of elements that can be either a string or a symbol. pets = ActiveSupport::ArrayInquirer.new([:cat, :dog, 'rabbit'])> pets.cat?#=> true> pets.rabbit?#=> true> pets.elephant?#=> falseArray Inquirer also has any? method to check for the presence of any of thepassed arguments as elemen
