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) -> Hash end
def register_namespaces(namespaces)
Experimental RBS support (using type sampling data from the type_fusion
project).
def register_namespaces: ( namespaces) ->
This signature was generated using 20 samples from 1 application.
##
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