diff options
author | Andrew White <pixeltrix@users.noreply.github.com> | 2015-09-21 11:20:42 +0100 |
---|---|---|
committer | Andrew White <pixeltrix@users.noreply.github.com> | 2015-09-21 11:20:42 +0100 |
commit | cd2c0adb8aad6fef44025ea97f67cb9e21e52dcf (patch) | |
tree | 7c3148c02c1a49031f143e2577f6bcf8d9362027 | |
parent | c2c7cea13ae8b5eb2e96b194cc9c141784ea1f36 (diff) | |
parent | 66b1517da85956a22a7c2b5c2c3c0ea8d31b06f1 (diff) | |
download | rails-cd2c0adb8aad6fef44025ea97f67cb9e21e52dcf.tar.gz rails-cd2c0adb8aad6fef44025ea97f67cb9e21e52dcf.tar.bz2 rails-cd2c0adb8aad6fef44025ea97f67cb9e21e52dcf.zip |
Merge pull request #21684 from amitsuroliya/correct_result
Applying right result of examples in ActiveSupport Multibyte [ci skip]
-rw-r--r-- | activesupport/lib/active_support/core_ext/string/multibyte.rb | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/activesupport/lib/active_support/core_ext/string/multibyte.rb b/activesupport/lib/active_support/core_ext/string/multibyte.rb index 7055f7f699..cc6f2158e7 100644 --- a/activesupport/lib/active_support/core_ext/string/multibyte.rb +++ b/activesupport/lib/active_support/core_ext/string/multibyte.rb @@ -9,12 +9,10 @@ class String # encapsulates the original string. A Unicode safe version of all the String methods are defined on this proxy # class. If the proxy class doesn't respond to a certain method, it's forwarded to the encapsulated string. # - # name = 'Claus Müller' - # name.reverse # => "rell??M sualC" - # name.length # => 13 - # - # name.mb_chars.reverse.to_s # => "rellüM sualC" - # name.mb_chars.length # => 12 + # >> "lj".upcase + # => "lj" + # >> "lj".mb_chars.upcase.to_s + # => "LJ" # # == Method chaining # |