class Nokogiri::XML::NodeSet
def reverse
Returns a new NodeSet containing all the nodes in the NodeSet
##
def reverse node_set = NodeSet.new(document) (length - 1).downto(0) do |x| node_set.push(self[x]) end node_set end
def reverse node_set = NodeSet.new(document) (length - 1).downto(0) do |x| node_set.push(self[x]) end node_set end