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



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

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

Instance Method Details

#activate(registry) ⇒ Object

Raises:

  • (::NotImplementedError)


705
706
707
# File 'lib/asciidoctor/extensions.rb', line 705

def activate registry
  raise ::NotImplementedError
end