Class: Asciidoctor::Extensions::Group

Inherits:
Object
  • Object
show all
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



687
688
689
# File 'lib/asciidoctor/extensions.rb', line 687

def register name = nil
  Extensions.register name, self
end

Instance Method Details

#activate(registry) ⇒ Object

Raises:

  • (::NotImplementedError)


692
693
694
# File 'lib/asciidoctor/extensions.rb', line 692

def activate registry
  raise ::NotImplementedError
end