require 'gemojione'

module Emoji
  extend self

  def emojis
    Gemojione.index.instance_variable_get(:@emoji_by_name)
  end

  def emojis_by_moji
    Gemojione.index.instance_variable_get(:@emoji_by_moji)
  end

  def emojis_names
    emojis.keys.sort
  end

  def emoji_filename(name)
    emojis[name]["unicode"]
  end

  # DEPRECATED: Built into Gemojione
  def images_path
    Gemojione.index.images_path
  end
end
