2016-06-25 17:48:12 -04:00
|
|
|
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
|
2016-10-11 10:27:09 -04:00
|
|
|
|
2016-10-11 09:41:10 -04:00
|
|
|
def emojis_unicodes
|
2016-10-11 10:27:09 -04:00
|
|
|
emojis_by_moji.keys
|
2016-10-11 09:41:10 -04:00
|
|
|
end
|
2016-10-11 10:27:09 -04:00
|
|
|
|
2016-06-25 17:48:12 -04:00
|
|
|
def emojis_names
|
2016-10-11 10:27:09 -04:00
|
|
|
emojis.keys
|
2016-06-25 17:48:12 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
def emoji_filename(name)
|
|
|
|
emojis[name]["unicode"]
|
|
|
|
end
|
2016-10-11 10:27:09 -04:00
|
|
|
|
2016-10-11 09:41:10 -04:00
|
|
|
def emoji_unicode_filename(moji)
|
|
|
|
emojis_by_moji[moji]["unicode"]
|
|
|
|
end
|
2016-06-25 17:48:12 -04:00
|
|
|
end
|
|
|
|
end
|