Class: Somemoji::EmojiExtractors::AppleEmojiExtractor
- Inherits:
-
BaseEmojiExtractor
- Object
- BaseEmojiExtractor
- Somemoji::EmojiExtractors::AppleEmojiExtractor
- Defined in:
- lib/somemoji/emoji_extractors/apple_emoji_extractor.rb
Constant Summary collapse
- IMAGE_SIZE =
64
Instance Method Summary collapse
Methods inherited from BaseEmojiExtractor
Constructor Details
This class inherits a constructor from Somemoji::EmojiExtractors::BaseEmojiExtractor
Instance Method Details
#extract ⇒ Object
Note:
Implementation for Somemoji::EmojiExtractors::BaseEmojiExtractor
11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/somemoji/emoji_extractors/apple_emoji_extractor.rb', line 11 def extract extract_images_into_temporary_directory extracted_image_paths.map do |image_path| if emoji = emoji_table[::File.basename(image_path, ".png").split("-")] ::FileUtils.mkdir_p("#{@destination}/unicode") ::FileUtils.move( image_path, "#{@destination}/#{emoji.base_path}.png", ) end end end |