Enumerable

module Enumerable

Public Instance Methods

exclude?(object) Show source

The negative of the Enumerable#include?. Returns true if the collection does not include the object.

# File activesupport/lib/active_support/core_ext/enumerable.rb, line 60
def exclude?(object)
  !include?(object)
end