Sha256: f41d5f3c1138474c39bd7e547bb004b173e1e50c2bc9bacf7bc098badb41fb6e

Contents?: true

Size: 371 Bytes

Versions: 10

Compression:

Stored size: 371 Bytes

Contents

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
    index = Gemojione.index
    index.find_by_moji(self) || index.find_by_name(self)
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
gemojione-4.3.3 lib/gemojione/string_ext.rb
gemojione-4.3.2 lib/gemojione/string_ext.rb
gemojione-4.3.1 lib/gemojione/string_ext.rb
gemojione-4.3.0 lib/gemojione/string_ext.rb
gemojione-4.2.0 lib/gemojione/string_ext.rb
gemojione-4.1.0 lib/gemojione/string_ext.rb
gemojione-4.0.0 lib/gemojione/string_ext.rb
gemojione-3.3.0 lib/gemojione/string_ext.rb
gemojione-3.2.0 lib/gemojione/string_ext.rb
gemojione-3.1.0 lib/gemojione/string_ext.rb