class XPath::DescendantIterator
Public Instance Methods
each(node, visitor) { |i| ... }
click to toggle source
# File lib/xml/xpath.rb, line 2613 def each(node, visitor) stack = visitor.visit(node).children.reverse while node = stack.pop i = visitor.visit(node) stack.concat i.children.reverse yield i end end