class Nokogiri::XML::Node

def tdiff_each_child(node,&block)

Other tags:
    Yieldparam: node -

Other tags:
    Yield: -

Parameters:
  • node (Nokogiri::XML::Node) --
def tdiff_each_child(node,&block)
  if node.kind_of?(Nokogiri::XML::Element)
    node.attribute_nodes.sort_by(&:name).each(&block)
  end
  node.children.each(&block)
end