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 { |mod| node.extend(mod) }
  end
end