Sha256: 09d345fb79b2149c3605d6cbb2c3579a78c87bc9a1c179e955e386d8877a95c8
Contents?: true
Size: 443 Bytes
Versions: 2
Compression:
Stored size: 443 Bytes
Contents
module Svgeez class SvgElement def initialize(source, destination) @source = source @destination = destination end def build %(<svg id="#{@destination.file_id}" xmlns="http://www.w3.org/2000/svg">#{symbol_elements.join}</svg>) end private def symbol_elements @source.file_paths.map do |file_path| SymbolElement.new(file_path, @destination.file_id).build end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
svgeez-2.0.1 | lib/svgeez/svg_element.rb |
svgeez-2.0.0 | lib/svgeez/svg_element.rb |