class Asciidoctor::Diagram::DiagramBlockMacroProcessor
Base class for diagram block macro processors.
Public Class Methods
inherited(subclass)
click to toggle source
# File lib/asciidoctor-diagram/diagram_processor.rb, line 354 def self.inherited(subclass) subclass.name_positional_attributes ['format'] end
Public Instance Methods
apply_target_subs(parent, target)
click to toggle source
# File lib/asciidoctor-diagram/diagram_processor.rb, line 358 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)
click to toggle source
Creates a FileSource
using target as the file name.
@return [FileSource] a FileSource
# File lib/asciidoctor-diagram/diagram_processor.rb, line 369 def create_source(parent, target, attributes) FileSource.new(self, parent, apply_target_subs(parent, target), attributes) end