Sha256: e79deeb0da9c860deedc2b9efbbaddc70c893e98e23267693e7c538a2677d6d2
Contents?: true
Size: 255 Bytes
Versions: 15
Compression:
Stored size: 255 Bytes
Contents
module InlineSvg::TransformPipeline::Transformations class ClassAttribute < Transformation def transform(doc) doc = Nokogiri::XML::Document.parse(doc.to_html) svg = doc.at_css 'svg' svg['class'] = value doc end end end
Version data entries
15 entries across 15 versions & 1 rubygems