aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authoramitkumarsuroliya <amitkumarsuroliya@gmail.com>2015-09-20 07:58:11 +0530
committeramitkumarsuroliya <amitkumarsuroliya@gmail.com>2015-09-21 04:06:21 +0530
commit66b1517da85956a22a7c2b5c2c3c0ea8d31b06f1 (patch)
tree7c78d675fd2b1f9d8ce75141b48f86df0e5b81c8 /activesupport
parent26aa1b58b0e9451d15a0ee32da3c004d44e5a356 (diff)
downloadrails-66b1517da85956a22a7c2b5c2c3c0ea8d31b06f1.tar.gz
rails-66b1517da85956a22a7c2b5c2c3c0ea8d31b06f1.tar.bz2
rails-66b1517da85956a22a7c2b5c2c3c0ea8d31b06f1.zip
Applying right result of examples in ActiveSupport Multibyte [ci skip]
Diffstat (limited to 'activesupport')
-rw-r--r--activesupport/lib/active_support/core_ext/string/multibyte.rb10
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
#