class Nokogiri::XML::XPathContext
Experimental RBS support (using type sampling data from the type_fusion
project).
# sig/nokogiri/xml/xpath_context.rbs class Nokogiri::XML::XPathContext def register_namespaces: (Hash namespaces) -> untyped end
def register_namespaces(namespaces)
Experimental RBS support (using type sampling data from the type_fusion
project).
def register_namespaces: (( | xmlns | String | xmlns | String | xmlns:xlink | String) namespaces) -> untyped
This signature was generated using 6 samples from 3 applications.
##
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