class InlineSvg::TransformPipeline::Transformations::StyleAttribute
Public Instance Methods
transform(doc)
click to toggle source
# File lib/inline_svg/transform_pipeline/transformations/style_attribute.rb, line 3 def transform(doc) with_svg(doc) do |svg| styles = svg["style"].to_s.split(";") styles << value svg["style"] = styles.join(";") end end