From 262af66d0578b748fb878e2b0d36eb40af722efc Mon Sep 17 00:00:00 2001 From: Norman Clarke Date: Thu, 5 Jan 2012 16:36:09 -0300 Subject: [PATCH] Document method definition --- activesupport/lib/active_support/multibyte/chars.rb | 2 ++ 1 file changed, 2 insertions(+) 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 @@ def split(*args) @wrapped_string.split(*args).map { |i| i.mb_chars } end + # Works like like String#slice!, but returns an instance of Chars, or nil if the string was not + # modified. def slice!(*args) chars(@wrapped_string.slice!(*args)) end -- GitLab