Sha256: e50744e540a04e0aafcf696bc2fe00334b6d2975a3fa2ee692d6d502664c3473

Contents?: true

Size: 248 Bytes

Versions: 3

Compression:

Stored size: 248 Bytes

Contents

require 'nokogiri'

module DragonflySvg
  module Processors
    class RemoveNamespaces

      def call content
        doc = Nokogiri::XML(content.data)

        doc.remove_namespaces!

        content.update(doc.to_xml)
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
dragonfly_svg-0.0.3 lib/dragonfly_svg/processors/remove_namespaces.rb
dragonfly_svg-0.0.2 lib/dragonfly_svg/processors/remove_namespaces.rb
dragonfly_svg-0.0.1 lib/dragonfly_svg/processors/remove_namespaces.rb