Class: Asciidoctor::Extensions::Group
- Inherits:
-
Object
- Object
- Asciidoctor::Extensions::Group
- Defined in:
- lib/asciidoctor/extensions.rb
Overview
A Group is used to register one or more extensions with the Registry.
The Group should be subclassed and registered with the Registry either by invoking the Group.register method or passing the subclass to the register method. Extensions are registered with the Registry inside the #activate method.
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.register(name = nil) ⇒ Object
713 714 715 |
# File 'lib/asciidoctor/extensions.rb', line 713 def register name = nil Extensions.register name, self end |
Instance Method Details
#activate(registry) ⇒ Object
718 719 720 |
# File 'lib/asciidoctor/extensions.rb', line 718 def activate registry raise ::NotImplementedError end |