class InlineSvg::TransformPipeline::Transformations::Width

Public Instance Methods

transform(doc) click to toggle source
# File lib/inline_svg/transform_pipeline/transformations/width.rb, line 3
def transform(doc)
  with_svg(doc) do |svg|
    svg["width"] = self.value
  end
end