instance method
exclude?
Ruby on Rails 3.0.20
Since v3.0.20Signature
exclude?(string)
The inverse of String#include?. Returns true if the string does not include the other string.
Parameters
-
stringreq
Source
# File activesupport/lib/active_support/core_ext/string/exclude.rb, line 3
def exclude?(string)
!include?(string)
end
Defined in activesupport/lib/active_support/core_ext/string/exclude.rb line 3
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in String