class Nokogiri::XML::NodeSet

def add_class(name)

See Nokogiri::XML::Node#add_class for more information.

NodeSet.
Add the class attribute +name+ to all Node objects in the
##
def add_class(name)
  each do |el|
    el.add_class(name)
  end
  self
end