Method: Hpricot::Container::Trav#following_siblings
- Defined in:
- lib/hpricot/traverse.rb
#following_siblings ⇒ Object
Find sibling elements which follow the current one. Like the other “sibling” methods, this weeds out text and comment nodes.
435 436 437 438 439 |
# File 'lib/hpricot/traverse.rb', line 435 def following_siblings() sibs = parent.containers si = sibs.index(self) + 1 return Elements[*sibs[si...sibs.length]] end |