class Asciidoctor::Extensions::Extension
Public: Extension
is a proxy object for an extension implementation such as a processor. It allows the preparation of the extension instance to be separated from its usage to provide consistency between different interfaces and avoid tight coupling with the extension type.
The proxy encapsulates the extension kind (e.g., :block), its config Hash
and the extension instance. This Proxy is what gets stored in the extension registry when activated.
Attributes
config[R]
instance[R]
kind[R]
Public Class Methods
new(kind, instance, config)
click to toggle source
# File lib/asciidoctor/extensions.rb, line 673 def initialize kind, instance, config @kind = kind @instance = instance @config = config end