Sha256: 84da363df85ba4858e9b5fbd4db552aaa80d8fc38b8a8d18662acdc30fde34d8

Contents?: true

Size: 349 Bytes

Versions: 428

Compression:

Stored size: 349 Bytes

Contents

# frozen_string_literal: true

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

Version data entries

428 entries across 425 versions & 12 rubygems

Version Path
trusty-cms-7.0.9.1 vendor/bundle/ruby/3.3.0/gems/nokogiri-1.17.2-x86_64-darwin/lib/nokogiri/xml/xpath_context.rb
trusty-cms-7.0.9.1 vendor/bundle/ruby/3.1.0/gems/nokogiri-1.16.7-x86_64-darwin/lib/nokogiri/xml/xpath_context.rb
minato_ruby_api_client-0.2.2 vendor/bundle/ruby/3.2.0/gems/nokogiri-1.16.6-x86_64-linux/lib/nokogiri/xml/xpath_context.rb
nokogiri-1.17.2-x86-mingw32 lib/nokogiri/xml/xpath_context.rb
nokogiri-1.17.2-x86-linux lib/nokogiri/xml/xpath_context.rb
nokogiri-1.17.2-x86_64-linux lib/nokogiri/xml/xpath_context.rb
nokogiri-1.17.2-x86_64-darwin lib/nokogiri/xml/xpath_context.rb
nokogiri-1.17.2-x64-mingw-ucrt lib/nokogiri/xml/xpath_context.rb
nokogiri-1.17.2-x64-mingw32 lib/nokogiri/xml/xpath_context.rb
nokogiri-1.17.2-java lib/nokogiri/xml/xpath_context.rb
nokogiri-1.17.2 lib/nokogiri/xml/xpath_context.rb
nokogiri-1.17.2-arm-linux lib/nokogiri/xml/xpath_context.rb
nokogiri-1.17.2-arm64-darwin lib/nokogiri/xml/xpath_context.rb
nokogiri-1.17.2-aarch64-linux lib/nokogiri/xml/xpath_context.rb
nokogiri-1.17.1-x86-mingw32 lib/nokogiri/xml/xpath_context.rb
nokogiri-1.17.1-x86-linux lib/nokogiri/xml/xpath_context.rb
nokogiri-1.17.1-x86_64-linux lib/nokogiri/xml/xpath_context.rb
nokogiri-1.17.1-x86_64-darwin lib/nokogiri/xml/xpath_context.rb
nokogiri-1.17.1-x64-mingw-ucrt lib/nokogiri/xml/xpath_context.rb
nokogiri-1.17.1-x64-mingw32 lib/nokogiri/xml/xpath_context.rb