Module: Emoju
- Extended by:
- Emoju
- Included in:
- Emoju
- Defined in:
- lib/emoju.rb,
lib/emoju/data.rb,
lib/emoju/version.rb
Defined Under Namespace
Classes: Data
Constant Summary collapse
- SUPPORTED_ENCODINGS =
[:softbank, :docomo, :google]
- VERSION =
"0.1.0"
Instance Method Summary collapse
- #docomo_to_unicode(str) ⇒ Object
- #google_to_unicode(str) ⇒ Object
- #softbank_to_unicode(str) ⇒ Object
- #unify(str) ⇒ Object
Instance Method Details
#docomo_to_unicode(str) ⇒ Object
19 20 21 |
# File 'lib/emoju.rb', line 19 def docomo_to_unicode(str) convert_from(str, :docomo) end |
#google_to_unicode(str) ⇒ Object
23 24 25 |
# File 'lib/emoju.rb', line 23 def google_to_unicode(str) convert_from(str, :google) end |
#softbank_to_unicode(str) ⇒ Object
15 16 17 |
# File 'lib/emoju.rb', line 15 def softbank_to_unicode(str) convert_from(str, :softbank) end |
#unify(str) ⇒ Object
9 10 11 12 13 |
# File 'lib/emoju.rb', line 9 def unify(str) result = softbank_to_unicode(str) result = google_to_unicode(result) docomo_to_unicode(result) end |