Module: Nokogiri::ClassResolver
Relationships & Source Files | |
Extension / Inclusion / Inheritance Descendants | |
Included In:
HTML4::Builder ,
HTML4::Document ,
HTML4::DocumentFragment ,
HTML4::SAX::Parser ,
HTML5::Builder ,
HTML5::Document ,
HTML5::DocumentFragment ,
HTML::Builder ,
HTML::Document ,
HTML::DocumentFragment ,
HTML::SAX::Parser ,
XML::Attr ,
XML::AttributeDecl ,
XML::Builder ,
XML::CDATA ,
XML::CharacterData ,
XML::Comment ,
XML::DTD ,
XML::Document ,
XML::DocumentFragment ,
XML::ElementDecl ,
XML::EntityDecl ,
XML::EntityReference ,
XML::Node ,
XML::ProcessingInstruction ,
XML::SAX::Parser ,
XML::Text ,
::NokogiriHtml5::Document ,
::NokogiriXml::DTD
| |
Defined in: | lib/nokogiri/class_resolver.rb |
Overview
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.
Constant Summary
-
VALID_NAMESPACES =
#related_class restricts matching namespaces to those matching this set.
Set.new(["HTML", "HTML4", "HTML5", "XML", "SAX"])
Instance Method Summary
-
#related_class(class_name) → Class)
Find a class constant within the.