Sha256: 2b8baf6dd8d1d15e1be6b6237d645a5a43bf833d25c67a222c2432903ad9eb23
Contents?: true
Size: 335 Bytes
Versions: 16
Compression:
Stored size: 335 Bytes
Contents
module InlineSvg::TransformPipeline::Transformations class Title < Transformation def transform(doc) with_svg(doc) do |svg| node = Nokogiri::XML::Node.new("title", doc) node.content = value svg.search("title").each { |node| node.remove } svg.prepend_child(node) end end end end
Version data entries
16 entries across 16 versions & 2 rubygems