gitlab-org--gitlab-foss/lib/gitlab/emoji.rb

30 lines
496 B
Ruby
Raw Normal View History

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
def emojis_names
2016-10-11 10:27:09 -04:00
emojis.keys
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
end
end