Class: Asciidoctor::Diagram::DiagramBlockMacroProcessor
- Inherits:
-
Extensions::BlockMacroProcessor
- Object
- Extensions::BlockMacroProcessor
- Asciidoctor::Diagram::DiagramBlockMacroProcessor
- Includes:
- DiagramProcessor
- Defined in:
- lib/asciidoctor-diagram/diagram_processor.rb
Overview
Base class for diagram block macro processors.
Direct Known Subclasses
AsciiToSvgBlockMacroProcessor, BpmnBlockMacroProcessor, BytefieldBlockMacroProcessor, DiagramsBlockMacroProcessor, DitaaBlockMacroProcessor, DpicBlockMacroProcessor, ErdBlockMacroProcessor, GnuplotBlockMacroProcessor, GraphvizBlockMacroProcessor, LilypondBlockMacroProcessor, MemeBlockMacroProcessor, MermaidBlockMacroProcessor, MscBlockMacroProcessor, NomnomlBlockMacroProcessor, PikchrBlockMacroProcessor, PlantUmlBlockMacroProcessor, SaltBlockMacroProcessor, ShaapeBlockMacroProcessor, SmcatBlockMacroProcessor, SvgBobBlockMacroProcessor, SymbolatorBlockMacroProcessor, SyntraxBlockMacroProcessor, TikZBlockMacroProcessor, UmletBlockMacroProcessor, VegaBlockMacroProcessor, WavedromBlockMacroProcessor
Constant Summary
Constants included from DiagramProcessor
Asciidoctor::Diagram::DiagramProcessor::IMAGE_PARAMS
Class Method Summary collapse
Instance Method Summary collapse
- #apply_target_subs(parent, target) ⇒ Object
-
#create_source(parent, target, attributes) ⇒ FileSource
Creates a FileSource using target as the file name.
Methods included from DiagramProcessor
Class Method Details
.inherited(subclass) ⇒ Object
355 356 357 |
# File 'lib/asciidoctor-diagram/diagram_processor.rb', line 355 def self.inherited(subclass) subclass.name_positional_attributes ['format'] end |
Instance Method Details
#apply_target_subs(parent, target) ⇒ Object
359 360 361 362 363 364 365 |
# File 'lib/asciidoctor-diagram/diagram_processor.rb', line 359 def apply_target_subs(parent, target) if target parent.normalize_system_path(parent.sub_attributes(target, :attribute_missing => 'warn')) else nil end end |
#create_source(parent, target, attributes) ⇒ FileSource
Creates a FileSource using target as the file name.
370 371 372 |
# File 'lib/asciidoctor-diagram/diagram_processor.rb', line 370 def create_source(parent, target, attributes) FileSource.new(self, parent, apply_target_subs(parent, target), attributes) end |