module RuboCop::AST::MethodIdentifierPredicates

def nonmutating_array_method?

Returns:
  • (Boolean) - whether the method is a nonmutating Array method
def nonmutating_array_method?
  NONMUTATING_ARRAY_METHODS.include?(method_name)
end