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



695
696
697
# File 'lib/asciidoctor/extensions.rb', line 695

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

Instance Method Details

#activate(registry) ⇒ Object

Raises:

  • (::NotImplementedError)


700
701
702
# File 'lib/asciidoctor/extensions.rb', line 700

def activate registry
  raise ::NotImplementedError
end