minor fixes

This commit is contained in:
Vijay Dev
2011-05-07 20:20:28 +05:30
parent 6e83330590
commit ffb70cf256
3 changed files with 3 additions and 4 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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