Skip to content

Commit

Permalink
Merge pull request #11887 from raysrashmi/typo_fix
Browse files Browse the repository at this point in the history
Typo Fix[ci skip]
  • Loading branch information
carlosantoniodasilva committed Aug 15, 2013
2 parents a4d4af4 + cada218 commit e6b9f13
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions activesupport/lib/active_support/core_ext/string/filters.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ def squish!
self self
end end


# Returns a new string with all occurances of the pattern removed. Short-hand for String#gsub(pattern, ''). # Returns a new string with all occurrences of the pattern removed. Short-hand for String#gsub(pattern, '').
def remove(pattern) def remove(pattern)
gsub pattern, '' gsub pattern, ''
end end


# Alters the string by removing all occurances of the pattern. Short-hand for String#gsub!(pattern, ''). # Alters the string by removing all occurrences of the pattern. Short-hand for String#gsub!(pattern, '').
def remove!(pattern) def remove!(pattern)
gsub! pattern, '' gsub! pattern, ''
end end
Expand Down

0 comments on commit e6b9f13

Please sign in to comment.