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

Version Path
files.com-1.0.55 docs/vendor/bundle/ruby/2.5.0/gems/activesupport-5.0.7.1/lib/active_support/core_ext/string/exclude.rb
activesupport-4.2.11.3 lib/active_support/core_ext/string/exclude.rb
activesupport-4.2.11.2 lib/active_support/core_ext/string/exclude.rb
cocoapods-dependency-html-0.0.2 vendor/bundle/gems/activesupport-4.2.11.1/lib/active_support/core_ext/string/exclude.rb
cocoapods-dependency-html-0.0.1 vendor/bundle/gems/activesupport-4.2.11.1/lib/active_support/core_ext/string/exclude.rb
activesupport-5.1.7 lib/active_support/core_ext/string/exclude.rb
activesupport-5.1.7.rc1 lib/active_support/core_ext/string/exclude.rb
activesupport-5.1.6.2 lib/active_support/core_ext/string/exclude.rb
activesupport-5.0.7.2 lib/active_support/core_ext/string/exclude.rb
activesupport-4.2.11.1 lib/active_support/core_ext/string/exclude.rb
activesupport-5.1.6.1 lib/active_support/core_ext/string/exclude.rb
activesupport-5.0.7.1 lib/active_support/core_ext/string/exclude.rb
activesupport-4.2.11 lib/active_support/core_ext/string/exclude.rb
activesupport-5.1.6 lib/active_support/core_ext/string/exclude.rb
activesupport-5.0.7 lib/active_support/core_ext/string/exclude.rb
tdiary-5.0.8 vendor/bundle/gems/activesupport-5.1.5/lib/active_support/core_ext/string/exclude.rb
activesupport-5.1.5 lib/active_support/core_ext/string/exclude.rb
activesupport-5.1.5.rc1 lib/active_support/core_ext/string/exclude.rb
pract6-0.1.0 .gem/ruby/2.3.0/gems/activesupport-5.1.4/lib/active_support/core_ext/string/exclude.rb
activesupport-4.2.10 lib/active_support/core_ext/string/exclude.rb