Method: Esvg#seed_cache

Defined in:
lib/esvg.rb

#seed_cache(options) ⇒ Object



94
95
96
97
98
99
100
# File 'lib/esvg.rb', line 94

def seed_cache(options)
  svgs = new(options)
  puts "Optimizing SVGs" if options[:print]
  svgs.symbols.map(&:optimize)
  svgs.write_cache
  svgs
end