class InlineSvg::TransformPipeline::Transformations::NoComment

Experimental RBS support (using type sampling data from the type_fusion project).

# sig/inline_svg/transform_pipeline/transformations/no_comment.rbs

class InlineSvg::TransformPipeline::Transformations::NoComment < InlineSvg::TransformPipeline::Transformations::Transformation
  def transform: (Nokogiri::XML::Document doc) -> Nokogiri::XML::Document
end

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 2 samples from 1 application.

def transform(doc)
  with_svg(doc) do |svg|
    svg.xpath("//comment()").each do |comment|
      comment.remove
    end
  end
end