Sha256: f3cd43a214c8b3da227ec8f2bfba5c1503a00fc2bfeda7d7428e2c711a471758
Contents?: true
Size: 289 Bytes
Versions: 16
Compression:
Stored size: 289 Bytes
Contents
module InlineSvg::TransformPipeline::Transformations class ClassAttribute < Transformation def transform(doc) with_svg(doc) do |svg| classes = (svg["class"] || "").split(" ") classes << value svg["class"] = classes.join(" ") end end end end
Version data entries
16 entries across 16 versions & 2 rubygems