[[‹ Part of the “Nokogiri for jQuery Users” series|From jQuery]]
.each()
Iterate over a jQuery object, executing a function for each matched element.
The Nokogiri equivalent is simply .each
on the NodeSet. more
.size() and .length
Return the number of elements in the jQuery object.
Nokogiri
supports both .size
and .length
.