instance method
exclude?
Ruby on Rails 6.0.6
Since v2.3.18Signature
exclude?(object)
The negative of the Enumerable#include?. Returns true if the collection does not include the object.
Parameters
-
objectreq
Source
# File activesupport/lib/active_support/core_ext/enumerable.rb, line 113
def exclude?(object)
!include?(object)
end
Defined in activesupport/lib/active_support/core_ext/enumerable.rb line 113
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Enumerable