class String
def exclude?(string)
"hello".exclude? "ol" # => true
"hello".exclude? "lo" # => false
does not include the other string.
The inverse of String#include?. Returns true if the string
def exclude?(string) !include?(string) end
def exclude?(string) !include?(string) end