Class: XPath::ChildIterator

Inherits:
AxisIterator show all
Defined in:
lib/xml/xpath.rb

Instance Method Summary collapse

Methods inherited from AxisIterator

#reverse_order?

Instance Method Details

#each(node, visitor, &block) ⇒ Object



2569
2570
2571
# File 'lib/xml/xpath.rb', line 2569

def each(node, visitor, &block)
  visitor.visit(node).children.each { |i| yield visitor.visit(i) }
end