aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/core_ext
diff options
context:
space:
mode:
authorVijay Dev <vijaydev.cse@gmail.com>2011-05-07 20:20:28 +0530
committerVijay Dev <vijaydev.cse@gmail.com>2011-05-07 20:20:28 +0530
commitffb70cf256e25965230af0e15ccb85e6e9f80bac (patch)
tree72689d032cf15900a0ad1a331c7cd951fff16533 /activesupport/lib/active_support/core_ext
parent6e83330590eafc52aa65ed17f8764414fc16346a (diff)
downloadrails-ffb70cf256e25965230af0e15ccb85e6e9f80bac.tar.gz
rails-ffb70cf256e25965230af0e15ccb85e6e9f80bac.tar.bz2
rails-ffb70cf256e25965230af0e15ccb85e6e9f80bac.zip
minor fixes
Diffstat (limited to 'activesupport/lib/active_support/core_ext')
-rw-r--r--activesupport/lib/active_support/core_ext/string/behavior.rb3
-rw-r--r--activesupport/lib/active_support/core_ext/string/exclude.rb2
-rw-r--r--activesupport/lib/active_support/core_ext/string/inquiry.rb2
3 files changed, 3 insertions, 4 deletions
diff --git a/activesupport/lib/active_support/core_ext/string/behavior.rb b/activesupport/lib/active_support/core_ext/string/behavior.rb
index 9d45fbca45..4aa960039b 100644
--- a/activesupport/lib/active_support/core_ext/string/behavior.rb
+++ b/activesupport/lib/active_support/core_ext/string/behavior.rb
@@ -1,6 +1,5 @@
class String
- # Enable more predictable duck-typing on String-like classes. See
- # Object#acts_like?.
+ # Enable more predictable duck-typing on String-like classes. See <tt>Object#acts_like?</tt>.
def acts_like_string?
true
end
diff --git a/activesupport/lib/active_support/core_ext/string/exclude.rb b/activesupport/lib/active_support/core_ext/string/exclude.rb
index 5ca268b953..5e184ec1b3 100644
--- a/activesupport/lib/active_support/core_ext/string/exclude.rb
+++ b/activesupport/lib/active_support/core_ext/string/exclude.rb
@@ -1,5 +1,5 @@
class String
- # The inverse of String#include?. Returns true if the string does not include the other 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
diff --git a/activesupport/lib/active_support/core_ext/string/inquiry.rb b/activesupport/lib/active_support/core_ext/string/inquiry.rb
index 604f3bf4dc..5f0a017de6 100644
--- a/activesupport/lib/active_support/core_ext/string/inquiry.rb
+++ b/activesupport/lib/active_support/core_ext/string/inquiry.rb
@@ -1,7 +1,7 @@
require 'active_support/string_inquirer'
class String
- # Wraps the current string in the ActiveSupport::StringInquirer class,
+ # Wraps the current string in the <tt>ActiveSupport::StringInquirer</tt> class,
# which gives you a prettier way to test for equality. Example:
#
# env = "production".inquiry