lib/gemojione/string_ext.rb in gemojione-3.0.1 vs lib/gemojione/string_ext.rb in gemojione-3.1.0
- old
+ new
@@ -1,9 +1,13 @@
class String
def with_emoji_images
Gemojione.replace_unicode_moji_with_images(self)
end
+ def with_emoji_names
+ Gemojione.replace_named_moji_with_images(self)
+ end
+
def image_url
Gemojione.image_url_for_name(self.emoji_data['name'])
end
def emoji_data