Sha256: 15e7ef19f1a7408a49f1ee4f92aafdddb59e686ad6b9c4476f9d18eef6386372
Contents?: true
Size: 299 Bytes
Versions: 183
Compression:
Stored size: 299 Bytes
Contents
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
Version data entries
183 entries across 174 versions & 19 rubygems