Sha256: 57079568fb02a06e1d216e63737c533b84f27baf0544c5cc8b8d6d2b327544a1
Contents?: true
Size: 251 Bytes
Versions: 23
Compression:
Stored size: 251 Bytes
Contents
module InlineSvg::TransformPipeline::Transformations class Width < Transformation def transform(doc) doc = Nokogiri::XML::Document.parse(doc.to_html) svg = doc.at_css 'svg' svg['width'] = self.value doc end end end
Version data entries
23 entries across 23 versions & 1 rubygems