aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2017-11-29 17:18:39 +0900
committerGitHub <noreply@github.com>2017-11-29 17:18:39 +0900
commitf4c08d14995ba9d5caf0f209d3a95308f93bec6a (patch)
treec6224f94d3f176eeb466cb30094850cc59d473d4 /activesupport
parente3d658e319bd0ab179fc0e12329ed4dc18bce584 (diff)
downloadrails-f4c08d14995ba9d5caf0f209d3a95308f93bec6a.tar.gz
rails-f4c08d14995ba9d5caf0f209d3a95308f93bec6a.tar.bz2
rails-f4c08d14995ba9d5caf0f209d3a95308f93bec6a.zip
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/
Diffstat (limited to 'activesupport')
-rw-r--r--activesupport/lib/active_support/core_ext/string/multibyte.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/core_ext/string/multibyte.rb b/activesupport/lib/active_support/core_ext/string/multibyte.rb
index 075b206d04..07c0d16398 100644
--- a/activesupport/lib/active_support/core_ext/string/multibyte.rb
+++ b/activesupport/lib/active_support/core_ext/string/multibyte.rb
@@ -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