Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/rails2_ruby2/downcase_patch.rb
Instance Method Summary collapse
Instance Method Details
#_mb_chars_downcase ⇒ Object
3 4 5 6 7 8 9 10 11 12 |
# File 'lib/rails2_ruby2/downcase_patch.rb', line 3 def _mb_chars_downcase mb = self.mb_chars return mb.downcase if mb === ActiveSupport::Multibyte::Chars if encoding == Encoding::UTF_8 ActiveSupport::Multibyte::Chars.new(self).downcase else self.downcase end end |