instance method
exclude?
Ruby on Rails 4.1.16
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 60
def exclude?(object)
!include?(object)
end
Defined in activesupport/lib/active_support/core_ext/enumerable.rb line 60
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Enumerable