aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/core_ext/string/exclude.rb
blob: 5e184ec1b3e215471455a93930837e7addb6a716 (plain) (blame)
1
2
3
4
5
6
class String
  # The inverse of <tt>String#include?</tt>. Returns true if the string does not include the other string.
  def exclude?(string)
    !include?(string)
  end
end