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