# File lib/nokogiri/xml/node_set.rb, line 45 def index(node) each_with_index { |member, j| return j if member == node } nil end