debian-mirror-gitlab/lib/gitlab/emoji.rb

30 lines
496 B
Ruby
Raw Normal View History

2016-08-24 12:49:21 +05:30
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-11-03 12:29:30 +05:30
def emojis_unicodes
emojis_by_moji.keys
end
2016-08-24 12:49:21 +05:30
def emojis_names
2016-11-03 12:29:30 +05:30
emojis.keys
2016-08-24 12:49:21 +05:30
end
def emoji_filename(name)
emojis[name]["unicode"]
end
2016-11-03 12:29:30 +05:30
def emoji_unicode_filename(moji)
emojis_by_moji[moji]["unicode"]
end
2016-08-24 12:49:21 +05:30
end
end