module InlineSvg::TransformPipeline

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

# sig/inline_svg/transform_pipeline.rbs

module InlineSvg::TransformPipeline
  def self.generate_html_from: (String svg_file, Hash transform_params) -> String
end

def self.generate_html_from(svg_file, transform_params)

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

def self.generate_html_from: (String svg_file, class | String transform_params) -> String

This signature was generated using 1 sample from 1 application.

def self.generate_html_from(svg_file, transform_params)
  document = Nokogiri::XML::Document.parse(svg_file)
  Transformations.lookup(transform_params).reduce(document) do |doc, transformer|
    transformer.transform(doc)
  end.to_html
end