Module: Emoji

Extended by:
Emoji
Included in:
Emoji
Defined in:
lib/emoji.rb

Instance Method Summary collapse

Instance Method Details

#customObject



16
17
18
# File 'lib/emoji.rb', line 16

def custom
  @custom ||= mapping.select { |name, unicode| unicode.nil? }.keys.sort
end

#images_pathObject



4
5
6
# File 'lib/emoji.rb', line 4

def images_path
  File.expand_path("../../images", __FILE__)
end

#name_for(unicode) ⇒ Object



24
25
26
# File 'lib/emoji.rb', line 24

def name_for(unicode)
  inverted_mapping[unicode]
end

#namesObject



8
9
10
# File 'lib/emoji.rb', line 8

def names
  @names ||= mapping.keys.sort
end

#unicode_for(name) ⇒ Object



20
21
22
# File 'lib/emoji.rb', line 20

def unicode_for(name)
  Array(mapping[name]).last
end

#unicodesObject



12
13
14
# File 'lib/emoji.rb', line 12

def unicodes
  @unicodes ||= inverted_mapping.keys
end