Class: XPath::FollowingIterator
- Inherits:
-
DescendantOrSelfIterator
- Object
- AxisIterator
- DescendantIterator
- DescendantOrSelfIterator
- XPath::FollowingIterator
- Defined in:
- lib/xml/xpath.rb
Instance Method Summary collapse
Methods inherited from AxisIterator
Instance Method Details
#each(node, visitor) ⇒ Object
2659 2660 2661 2662 2663 2664 |
# File 'lib/xml/xpath.rb', line 2659 def each(node, visitor) while parent = (a = visitor.visit(node)).parent a.each_following_siblings { |i| super i, visitor } node = parent end end |