class InlineSvg::TransformPipeline::Transformations::NoComment
Public Instance Methods
transform(doc)
click to toggle source
# File lib/inline_svg/transform_pipeline/transformations/no_comment.rb, line 4 def transform(doc) with_svg(doc) do |svg| svg.xpath("//comment()").each do |comment| comment.remove end end end