Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
vijaydev committed May 7, 2011
1 parent 6e83330 commit ffb70cf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions activesupport/lib/active_support/core_ext/string/behavior.rb
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit ffb70cf

Please sign in to comment.