Method: Enumerable#exclude?

Defined in:
activesupport/lib/active_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)


118
119
120
# File 'activesupport/lib/active_support/core_ext/enumerable.rb', line 118

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