Module: Asciidoctor::Extensions::MacroProcessorDsl

Includes:
SyntaxProcessorDsl
Included in:
InlineMacroProcessorDsl
Defined in:
lib/asciidoctor/extensions.rb

Instance Method Summary collapse

Methods included from SyntaxProcessorDsl

#content_model, #default_attributes, #named, #positional_attributes

Instance Method Details

#resolve_attributes(*args) ⇒ Object Also known as: resolves_attributes



582
583
584
585
586
587
588
589
# File 'lib/asciidoctor/extensions.rb', line 582

def resolve_attributes *args
  if args.size == 1 && !args[0]
    option :content_model, :text
  else
    super
    option :content_model, :attributes
  end
end