Sha256: 390d582ef6550f21a48f45276e18060924c63064b70b82e10b2aa2dd836cdbff

Contents?: true

Size: 296 Bytes

Versions: 171

Compression:

Stored size: 296 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

171 entries across 143 versions & 25 rubygems

Version Path
challah-rolls-0.2.0 vendor/bundle/gems/activesupport-3.2.7/lib/active_support/core_ext/string/exclude.rb
challah-0.8.3 vendor/bundle/gems/activesupport-3.2.8/lib/active_support/core_ext/string/exclude.rb
challah-0.8.3 vendor/bundle/gems/activesupport-3.2.9/lib/active_support/core_ext/string/exclude.rb
activesupport-3.2.9 lib/active_support/core_ext/string/exclude.rb
activesupport-3.2.9.rc3 lib/active_support/core_ext/string/exclude.rb
activesupport-3.2.9.rc2 lib/active_support/core_ext/string/exclude.rb
fragrant-0.0.5 vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.8/lib/active_support/core_ext/string/exclude.rb
activesupport-3.2.9.rc1 lib/active_support/core_ext/string/exclude.rb
challah-0.8.1 vendor/bundle/gems/activesupport-3.2.8/lib/active_support/core_ext/string/exclude.rb
challah-rolls-0.1.0 vendor/bundle/gems/activesupport-3.2.7/lib/active_support/core_ext/string/exclude.rb
challah-rolls-0.1.0 vendor/bundle/gems/activesupport-3.2.8/lib/active_support/core_ext/string/exclude.rb
challah-rolls-0.1.0 vendor/bundle/gems/challah-0.8.0.pre/vendor/bundle/gems/activesupport-3.2.7/lib/active_support/core_ext/string/exclude.rb
challah-0.8.0.pre vendor/bundle/gems/activesupport-3.2.7/lib/active_support/core_ext/string/exclude.rb
challah-0.7.1 vendor/bundle/gems/activesupport-3.2.7/lib/active_support/core_ext/string/exclude.rb
challah-0.7.0 vendor/bundle/gems/activesupport-3.2.7/lib/active_support/core_ext/string/exclude.rb
challah-0.7.0.pre2 vendor/bundle/gems/activesupport-3.2.7/lib/active_support/core_ext/string/exclude.rb
activesupport-3.2.8 lib/active_support/core_ext/string/exclude.rb
activesupport-3.2.8.rc2 lib/active_support/core_ext/string/exclude.rb
challah-0.7.0.pre vendor/bundle/gems/activesupport-3.2.7/lib/active_support/core_ext/string/exclude.rb
activesupport-3.2.8.rc1 lib/active_support/core_ext/string/exclude.rb