Method: Enumerable#exclude?

Defined in:
lib/passive_support/core_ext/enumerable.rb

#exclude?(object) ⇒ Boolean

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

Returns:

  • (Boolean)


117
118
119
# File 'lib/passive_support/core_ext/enumerable.rb', line 117

def exclude?(object)
  !include?(object)
end