BigW Consortium Gitlab

emoji.rb 496 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11
module Gitlab
  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
12

13
    def emojis_unicodes
14
      emojis_by_moji.keys
15
    end
16

17
    def emojis_names
18
      emojis.keys
19 20 21 22 23
    end

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

25 26 27
    def emoji_unicode_filename(moji)
      emojis_by_moji[moji]["unicode"]
    end
28 29
  end
end