aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/core_ext/string/exclude.rb
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2013-11-24 20:00:24 +0100
committerXavier Noria <fxn@hashref.com>2013-11-24 20:00:24 +0100
commit17c29a0df0da5414570b025b642e90968e96cddc (patch)
treede1fd00eb2df79bf6bdcaeb74cc17365eaa53e33 /activesupport/lib/active_support/core_ext/string/exclude.rb
parentb4b30c048d22b14d51cc2f0f5b397bf899a9ce49 (diff)
parent28a6a7ea3bd627a8b6693a4cb8305b89467592b4 (diff)
downloadrails-17c29a0df0da5414570b025b642e90968e96cddc.tar.gz
rails-17c29a0df0da5414570b025b642e90968e96cddc.tar.bz2
rails-17c29a0df0da5414570b025b642e90968e96cddc.zip
Merge remote-tracking branch 'docrails/master'
Conflicts: activesupport/lib/active_support/core_ext/hash/deep_merge.rb activesupport/lib/active_support/core_ext/hash/keys.rb
Diffstat (limited to 'activesupport/lib/active_support/core_ext/string/exclude.rb')
-rw-r--r--activesupport/lib/active_support/core_ext/string/exclude.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/activesupport/lib/active_support/core_ext/string/exclude.rb b/activesupport/lib/active_support/core_ext/string/exclude.rb
index 114bcb87f0..0ac684f6ee 100644
--- a/activesupport/lib/active_support/core_ext/string/exclude.rb
+++ b/activesupport/lib/active_support/core_ext/string/exclude.rb
@@ -2,9 +2,9 @@ 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
+ # "hello".exclude? "lo" # => false
+ # "hello".exclude? "ol" # => true
+ # "hello".exclude? ?h # => false
def exclude?(string)
!include?(string)
end