Class: Asciidoctor::Diagram::MemeBlockMacroProcessor

Inherits:
DiagramBlockMacroProcessor show all
Defined in:
lib/asciidoctor-diagram/meme/extension.rb

Defined Under Namespace

Classes: StringReader

Constant Summary

Constants included from DiagramProcessor

DiagramProcessor::IMAGE_PARAMS

Instance Method Summary collapse

Methods inherited from DiagramBlockMacroProcessor

#apply_target_subs, inherited

Methods included from DiagramProcessor

included, #process

Instance Method Details

#create_source(parent, target, attributes) ⇒ Object



21
22
23
24
25
# File 'lib/asciidoctor-diagram/meme/extension.rb', line 21

def create_source(parent, target, attributes)
  attributes = attributes.dup
  attributes['background'] = apply_target_subs(parent, target)
  ::Asciidoctor::Diagram::ReaderSource.new(self, parent, StringReader.new(''), attributes)
end