Module: Asciidoctor::Diagram::BarcodeMacroProcessor

Included in:
BarcodeBlockMacroProcessor, BarcodeInlineMacroProcessor
Defined in:
lib/asciidoctor-diagram/barcode/extension.rb

Instance Method Summary collapse

Instance Method Details

#create_source(parent, target, attributes) ⇒ Object



20
21
22
23
24
25
26
27
# File 'lib/asciidoctor-diagram/barcode/extension.rb', line 20

def create_source(parent, target, attributes)
  if attributes['external']
    super
  else
    code = parent.sub_attributes(target, :attribute_missing => 'warn')
    ::Asciidoctor::Diagram::ReaderSource.new(self, parent, code, attributes)
  end
end