Class: XPath::ParentIterator
- Inherits:
-
AxisIterator
- Object
- AxisIterator
- XPath::ParentIterator
- Defined in:
- lib/xml/xpath.rb
Instance Method Summary collapse
Methods inherited from AxisIterator
Instance Method Details
#each(node, visitor) {|visitor.visit(parent)| ... } ⇒ Object
2578 2579 2580 2581 |
# File 'lib/xml/xpath.rb', line 2578 def each(node, visitor) parent = visitor.visit(node).parent yield visitor.visit(parent) if parent end |