Method: Nokogiri::XML::NodeSet#each
- Defined in:
- lib/nokogiri/xml/node_set.rb
#each ⇒ Object
Iterate over each node, yielding to block
231 232 233 234 235 236 237 238 |
# File 'lib/nokogiri/xml/node_set.rb', line 231 def each return to_enum unless block_given? 0.upto(length - 1) do |x| yield self[x] end self end |