class Nokogiri::XML::Document

def decorate(node)

Apply any decorators to +node+
#
def decorate(node)
  return unless @decorators
  @decorators.each do |klass, list|
    next unless node.is_a?(klass)
    list.each { |moodule| node.extend(moodule) }
  end
end