method
prefix_of
prefix_of( node, namespace=nil )
private
Hide source
# File lib/rexml/light/node.rb, line 184 def prefix_of( node, namespace=nil ) if not namespace name = node.name name =~ NAMESPLIT $1 else ns = at(3).find { |k,v| v == namespace } ns ? ns : prefix_of( node.parent, namespace ) end end