Class: Moxml::Adapter::Libxml::EntityRestorer
- Inherits:
-
Object
- Object
- Moxml::Adapter::Libxml::EntityRestorer
- Defined in:
- lib/moxml/adapter/libxml/entity_restorer.rb
Overview
Restores configured character entities into explicit Moxml EntityReference nodes after LibXML has parsed the native tree.
Instance Method Summary collapse
-
#initialize(doc, adapter: Libxml) ⇒ EntityRestorer
constructor
A new instance of EntityRestorer.
- #run ⇒ Object
Constructor Details
#initialize(doc, adapter: Libxml) ⇒ EntityRestorer
Returns a new instance of EntityRestorer.
9 10 11 12 13 14 15 |
# File 'lib/moxml/adapter/libxml/entity_restorer.rb', line 9 def initialize(doc, adapter: Libxml) @doc = doc @ctx = doc.context @registry = @ctx.entity_registry @config = @ctx.config @adapter = adapter end |