aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNorman Clarke <norman@njclarke.com>2012-01-05 16:36:09 -0300
committerNorman Clarke <norman@njclarke.com>2012-01-05 16:36:09 -0300
commit262af66d0578b748fb878e2b0d36eb40af722efc (patch)
treea548671536566def23a8eb202dc86ed07242737f
parentb81bef531c9ebe08d39a4859b01824b390866675 (diff)
downloadrails-262af66d0578b748fb878e2b0d36eb40af722efc.tar.gz
rails-262af66d0578b748fb878e2b0d36eb40af722efc.tar.bz2
rails-262af66d0578b748fb878e2b0d36eb40af722efc.zip
Document method definition
-rw-r--r--activesupport/lib/active_support/multibyte/chars.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/activesupport/lib/active_support/multibyte/chars.rb b/activesupport/lib/active_support/multibyte/chars.rb
index 8cd3cfe455..ba2ada2c1a 100644
--- a/activesupport/lib/active_support/multibyte/chars.rb
+++ b/activesupport/lib/active_support/multibyte/chars.rb
@@ -80,6 +80,8 @@ module ActiveSupport #:nodoc:
@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