class InlineSvg::TransformPipeline::Transformations::Size

def height_of(value)

def height_of(value)
  value.split(/\*/).map(&:strip)[1] || width_of(value)
end

def transform(doc)

def transform(doc)
  with_svg(doc) do |svg|
    svg["width"] = width_of(self.value)
    svg["height"] = height_of(self.value)
  end
end

def width_of(value)

def width_of(value)
  value.split(/\*/).map(&:strip)[0]
end