Module: Babosa::UTF8::ActiveSupportProxy
- Extended by:
- ActiveSupportProxy, UTF8Proxy
- Included in:
- ActiveSupportProxy
- Defined in:
- lib/babosa/utf8/active_support_proxy.rb
Overview
A UTF-8 proxy using Active Support’s multibyte support.
Constant Summary
Constants included from UTF8Proxy
Instance Method Summary collapse
Methods included from UTF8Proxy
Instance Method Details
#downcase(string) ⇒ Object
7 8 9 |
# File 'lib/babosa/utf8/active_support_proxy.rb', line 7 def downcase(string) ActiveSupport::Multibyte::Chars.new(string).downcase.to_s end |
#normalize_utf8(string) ⇒ Object
15 16 17 |
# File 'lib/babosa/utf8/active_support_proxy.rb', line 15 def normalize_utf8(string) ActiveSupport::Multibyte::Chars.new(string).normalize(:c).to_s end |
#upcase(string) ⇒ Object
11 12 13 |
# File 'lib/babosa/utf8/active_support_proxy.rb', line 11 def upcase(string) ActiveSupport::Multibyte::Chars.new(string).upcase.to_s end |