lib/savagery/spriter.rb in savagery-0.1.0 vs lib/savagery/spriter.rb in savagery-0.2.0

- old
+ new

@@ -8,20 +8,19 @@ attr_accessor :path def sprite! File.write sprite_path, sprite - sprite_path end private def sprite_path path + ".svg" end def sprite - "<svg><defs>\n\n#{symbols.join("\n")}\n</defs></svg>\n" + %(<svg style="display: none"><defs>\n\n#{symbols.join("\n")}\n</defs></svg>\n) end def symbols Image.from_paths(image_paths).map(&:symbol) end