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