Class: Siba::EncodingHelper
- Inherits:
-
Object
- Object
- Siba::EncodingHelper
- Defined in:
- lib/siba/helpers/encoding_helper.rb
Constant Summary collapse
- EXTERNAL_ENCODING =
Encoding.find "external"
- INTERNAL_ENCODING =
Encoding::UTF_8
Class Method Summary collapse
Class Method Details
.encode_to_external(value) ⇒ Object
9 10 11 |
# File 'lib/siba/helpers/encoding_helper.rb', line 9 def encode_to_external(value) encode value, EXTERNAL_ENCODING, INTERNAL_ENCODING end |