1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Mention about Ruby 2.4 Unicode case mappings in mb_chars example [ci skip] (#31275)

https://www.ruby-lang.org/en/news/2016/09/08/ruby-2-4-0-preview2-released/
This commit is contained in:
Ryuta Kamizono 2017-11-29 17:18:39 +09:00 committed by GitHub
parent e3d658e319
commit f4c08d1499
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -12,10 +12,12 @@ class String
# class. If the proxy class doesn't respond to a certain method, it's forwarded to the encapsulated string.
#
# >> "lj".upcase
# => "LJ"
# => "lj"
# >> "lj".mb_chars.upcase.to_s
# => "LJ"
#
# NOTE: An above example is useful for pre Ruby 2.4. Ruby 2.4 supports Unicode case mappings.
#
# == Method chaining
#
# All the methods on the Chars proxy which normally return a string will return a Chars object. This allows