class Middleman::Svg::TransformPipeline::Transformations::NoDefs

Public Instance Methods

transform(doc) click to toggle source
# File lib/middleman-svg/transform_pipeline/transformations/no_defs.rb, line 4
def transform(doc)
  with_svg(doc) do |svg|
    svg.at_css("defs").remove if !svg.at_css("defs").blank?
  end
end