module Nokogiri::ClassResolver

Some classes in Nokogiri are namespaced as a group, for example Document, DocumentFragment, and Builder.

It’s sometimes necessary to look up the related class, e.g.:

XML::Builder  XML::Document
HTML4::Builder  HTML4::Document
HTML5::Document  HTML5::DocumentFragment

This module is included into those key classes who need to do this.

Constants

VALID_NAMESPACES

related_class restricts matching namespaces to those matching this set.

Public Instance Methods