File Manager

Path: /opt/chef/embedded/lib/ruby/gems/2.7.0/gems/nokogiri-1.10.10/lib/nokogiri/xml/

Viewing File: xpath_context.rb

module Nokogiri
  module XML
    class XPathContext

      ###
      # Register namespaces in +namespaces+
      def register_namespaces(namespaces)
        namespaces.each do |k, v|
          k = k.to_s.gsub(/.*:/,'') # strip off 'xmlns:' or 'xml:'
          register_ns(k, v)
        end
      end

    end
  end
end