Permalink
Browse files

Document method definition

  • Loading branch information...
1 parent b81bef5 commit 262af66d0578b748fb878e2b0d36eb40af722efc @norman norman committed Jan 5, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 activesupport/lib/active_support/multibyte/chars.rb
@@ -80,6 +80,8 @@ def split(*args)
@wrapped_string.split(*args).map { |i| i.mb_chars }
end
+ # Works like like <tt>String#slice!</tt>, but returns an instance of Chars, or nil if the string was not
+ # modified.
def slice!(*args)
chars(@wrapped_string.slice!(*args))
end

0 comments on commit 262af66

Please sign in to comment.