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



591
592
593
594
595
596
597
598
# File 'lib/asciidoctor/extensions.rb', line 591

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