Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/utf8_converter.rb
Overview
This partial class adds some useful methods to convert text to utf-8
Instance Method Summary collapse
Instance Method Details
#to_utf8 ⇒ Object
52 53 54 |
# File 'lib/utf8_converter.rb', line 52 def to_utf8 dup.to_utf8! end |
#to_utf8! ⇒ Object
48 49 50 |
# File 'lib/utf8_converter.rb', line 48 def to_utf8! UTF8Converter.convert_to_utf8!(self) end |