class InlineSvg::TransformPipeline::Transformations::AriaHiddenAttribute

Public Instance Methods

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