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:
parent
e3d658e319
commit
f4c08d1499
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue