class InlineSvg::TransformPipeline::Transformations::ClassAttribute
def transform(doc)
Experimental RBS support (using type sampling data from the type_fusion
project).
def transform: (Nokogiri::XML::Document doc) -> Nokogiri::XML::Document
This signature was generated using 3 samples from 2 applications.
def transform(doc) with_svg(doc) do |svg| classes = (svg["class"] || "").split(" ") classes << value svg["class"] = classes.join(" ") end end