Class: Asciidoctor::Extensions::Group

Inherits:
Object
  • Object
show all
Defined in:
lib/asciidoctor/extensions.rb

Overview

Public: 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



689
690
691
# File 'lib/asciidoctor/extensions.rb', line 689

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

Instance Method Details

#activate(registry) ⇒ Object

Raises:

  • (::NotImplementedError)


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

def activate registry
  raise ::NotImplementedError
end