aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/multibyte
diff options
context:
space:
mode:
authorAkira Matsuda <ronnie@dio.jp>2016-12-17 17:13:50 +0900
committerAkira Matsuda <ronnie@dio.jp>2016-12-24 11:39:05 +0900
commita43e7706be907e62fad4ffe5f80ab9532c51dbca (patch)
treef0854bd80e7ab3bc06a55e55929ef50a8330df8a /activesupport/lib/active_support/multibyte
parent4db99eb87b98f3810e782fd745b0474467f9ce66 (diff)
downloadrails-a43e7706be907e62fad4ffe5f80ab9532c51dbca.tar.gz
rails-a43e7706be907e62fad4ffe5f80ab9532c51dbca.tar.bz2
rails-a43e7706be907e62fad4ffe5f80ab9532c51dbca.zip
Privatize unneededly protected methods in Active Support
Diffstat (limited to 'activesupport/lib/active_support/multibyte')
-rw-r--r--activesupport/lib/active_support/multibyte/chars.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/activesupport/lib/active_support/multibyte/chars.rb b/activesupport/lib/active_support/multibyte/chars.rb
index 262f25b874..65d6259a06 100644
--- a/activesupport/lib/active_support/multibyte/chars.rb
+++ b/activesupport/lib/active_support/multibyte/chars.rb
@@ -210,9 +210,9 @@ module ActiveSupport #:nodoc:
end
end
- protected
+ private
- def translate_offset(byte_offset) #:nodoc:
+ def translate_offset(byte_offset)
return nil if byte_offset.nil?
return 0 if @wrapped_string == ""
@@ -224,7 +224,7 @@ module ActiveSupport #:nodoc:
end
end
- def chars(string) #:nodoc:
+ def chars(string)
self.class.new(string)
end
end