lib/emojidex/data/emoji/asset_information.rb in emojidex-0.2.1 vs lib/emojidex/data/emoji/asset_information.rb in emojidex-0.2.2
- old
+ new
@@ -35,9 +35,18 @@
Emojidex::Defaults.sizes.keys.each do |size|
@checksums[:png][size] = checksums[:png][size] if checksums[:png].include? size
end
end
+ def blank_paths
+ @paths = {}
+ @paths[:svg] = nil
+ @paths[:png] = {}
+ Emojidex::Defaults.sizes.keys.each do |size|
+ @paths[:png][size] = nil
+ end
+ end
+
def fill_paths(paths)
@paths[:svg] = paths[:svg] if paths.include? :svg
return unless paths.include? :png
Emojidex::Defaults.sizes.keys.each do |size|
@paths[:png][size] = paths[:png][size] if paths[:png].include? size