Class: Asciidoctor::Converter::DefaultFactoryProxy

Inherits:
CustomFactory
  • Object
show all
Includes:
DefaultFactory
Defined in:
lib/asciidoctor/converter.rb

Constant Summary

Constants included from DefaultFactory

Asciidoctor::Converter::DefaultFactory::PROVIDED

Instance Method Summary collapse

Methods included from DefaultFactory

#register

Methods included from Factory

#converters, create, #create, default, new, #register

Methods inherited from CustomFactory

#initialize

Constructor Details

This class inherits a constructor from Asciidoctor::Converter::CustomFactory

Instance Method Details

#for(backend) ⇒ Object



351
352
353
# File 'lib/asciidoctor/converter.rb', line 351

def for backend
  @registry.fetch(backend) { super }
end

#unregister_allObject



346
347
348
349
# File 'lib/asciidoctor/converter.rb', line 346

def unregister_all
  super
  @registry.clear.default = nil
end