class Nokogiri::XML::XPathContext

def register_namespaces(namespaces)

Experimental RBS support (using type sampling data from the type_fusion project).

def register_namespaces: (Hash namespaces) -> untyped

This signature was generated using 2 samples from 1 application.

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