class Asciidoctor::Diagram::StructurizrBlockMacroProcessor

Public Class Methods

new(name = nil, config = nil) click to toggle source
Calls superclass method
# File lib/asciidoctor-diagram/structurizr/extension.rb, line 37
def initialize(name = nil, config = nil)
  super
  @structurizr = StructurizrConvertBlockMacroProcessor.new(name)
  @renderers = Renderers.new(name)
end

Public Instance Methods

process(parent, target, attributes) click to toggle source
# File lib/asciidoctor-diagram/structurizr/extension.rb, line 43
def process parent, target, attributes
  structurizr_attrs = attributes.dup
  structurizr_attrs['format'] = 'txt'

  renderer_block = @structurizr.process(parent, target, structurizr_attrs)
  @renderers.get_renderer(BasicSource.new(self, parent, attributes)).process(parent, renderer_block, attributes)
end