aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/multibyte
diff options
context:
space:
mode:
authorNorman Clarke <norman@njclarke.com>2012-01-05 17:25:40 -0300
committerNorman Clarke <norman@njclarke.com>2012-01-05 17:25:40 -0300
commit16bee7618c328ecd790db366221639661912c477 (patch)
tree19202e29bbd62c83cf09a48db680344dba01dcb2 /activesupport/lib/active_support/multibyte
parentdb6eb1930d5e31d08e2cc613ad0570d0d1bb0730 (diff)
downloadrails-16bee7618c328ecd790db366221639661912c477.tar.gz
rails-16bee7618c328ecd790db366221639661912c477.tar.bz2
rails-16bee7618c328ecd790db366221639661912c477.zip
Use friendlier method name
Diffstat (limited to 'activesupport/lib/active_support/multibyte')
-rw-r--r--activesupport/lib/active_support/multibyte/chars.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activesupport/lib/active_support/multibyte/chars.rb b/activesupport/lib/active_support/multibyte/chars.rb
index eb7f99dd71..99b974e4a7 100644
--- a/activesupport/lib/active_support/multibyte/chars.rb
+++ b/activesupport/lib/active_support/multibyte/chars.rb
@@ -168,8 +168,8 @@ module ActiveSupport #:nodoc:
#
# Example:
# 'क्षि'.mb_chars.length # => 4
- # 'क्षि'.mb_chars.g_length # => 3
- def g_length
+ # 'क्षि'.mb_chars.grapheme_length # => 3
+ def grapheme_length
Unicode.unpack_graphemes(@wrapped_string).length
end