I wrote the following code with jQuery:
$("#bar").nextAll(".foo").each(function(index){
console.log($(this))
})
And I'd like to transpose it to Nokogiri.
I read the documentation for Nokogiri - jQuery but I cannot find how to write an equivalent of the nextAll() method.
Any idea?