Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tag: v3.2.13.rc1
Fetching contributors…

Cannot retrieve contributors at this time

12 lines (11 sloc) 0.296 kB
class String
# The inverse of <tt>String#include?</tt>. Returns true if the string
# does not include the other string.
#
# "hello".exclude? "lo" #=> false
# "hello".exclude? "ol" #=> true
# "hello".exclude? ?h #=> false
def exclude?(string)
!include?(string)
end
end
Jump to Line
Something went wrong with that request. Please try again.