Sha256: 87fc878b1cb6c4495f6902876afc31f21d8aa3065e18beaf28c106198061791f

Contents?: true

Size: 314 Bytes

Versions: 185

Compression:

Stored size: 314 Bytes

Contents

module Nokogiri
  module XML
    class XPathContext

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

    end
  end
end

Version data entries

185 entries across 185 versions & 20 rubygems

Version Path
nokogiri-1.5.3.rc2-x86-mswin32-60 lib/nokogiri/xml/xpath_context.rb
nokogiri-1.5.3.rc2 lib/nokogiri/xml/xpath_context.rb
nokogiri-1.5.2 lib/nokogiri/xml/xpath_context.rb
nokogiri-1.5.2-x86-mswin32-60 lib/nokogiri/xml/xpath_context.rb
nokogiri-1.5.2-x86-mingw32 lib/nokogiri/xml/xpath_context.rb
nokogiri-1.5.2-java lib/nokogiri/xml/xpath_context.rb
nokogiri-1.5.1-x86-mswin32-60 lib/nokogiri/xml/xpath_context.rb
nokogiri-1.5.1-x86-mingw32 lib/nokogiri/xml/xpath_context.rb
nokogiri-1.5.1 lib/nokogiri/xml/xpath_context.rb
nokogiri-1.5.1-java lib/nokogiri/xml/xpath_context.rb
nokogiri-1.5.1.rc1-x86-mswin32-60 lib/nokogiri/xml/xpath_context.rb
nokogiri-1.5.1.rc1-x86-mingw32 lib/nokogiri/xml/xpath_context.rb
nokogiri-1.5.1.rc1-java lib/nokogiri/xml/xpath_context.rb
nokogiri-1.5.1.rc1 lib/nokogiri/xml/xpath_context.rb
radiant-1.0.0 ruby-debug/ruby/1.8/gems/nokogiri-1.5.0/lib/nokogiri/xml/xpath_context.rb
iisconfig-0.0.1.pre2 build/bundler/ruby/1.9.1/gems/nokogiri-1.5.0-x86-mingw32/lib/nokogiri/xml/xpath_context.rb
iisconfig-0.0.1.pre1 build/bundler/ruby/1.9.1/gems/nokogiri-1.5.0-x86-mingw32/lib/nokogiri/xml/xpath_context.rb
domo-0.0.5 vendor/bundle/ruby/1.9.1/gems/nokogiri-1.5.0/lib/nokogiri/xml/xpath_context.rb
domo-0.0.4 vendor/bundle/ruby/1.9.1/gems/nokogiri-1.4.4/lib/nokogiri/xml/xpath_context.rb
horseman-0.0.4 vendor/ruby/1.9.1/gems/nokogiri-1.5.0/lib/nokogiri/xml/xpath_context.rb