module Asciidoctor::Extensions::MacroProcessorDsl

Public Instance Methods

bind_to(value)
Alias for: named
content_model(value) click to toggle source
# File lib/asciidoctor/extensions.rb, line 390
def content_model value
  option :content_model, value
end
Also aliased as: parse_content_as
default_attrs(value) click to toggle source
# File lib/asciidoctor/extensions.rb, line 402
def default_attrs value
  option :default_attrs, value
end
Also aliased as: seed_attributes_with
match_name(value)
Alias for: named
name_attributes(*value)
name_positional_attributes(*value)
named(value) click to toggle source

QUESTION perhaps include a SyntaxDsl?

# File lib/asciidoctor/extensions.rb, line 380
def named value
  if Processor === self
    @name = value
  else
    option :name, value
  end
end
Also aliased as: match_name, bind_to
parse_content_as(value)
Alias for: content_model
pos_attrs(*value)
positional_attributes(*value) click to toggle source
# File lib/asciidoctor/extensions.rb, line 395
def positional_attributes *value
  option :pos_attrs, value.flatten
end
seed_attributes_with(value)
Alias for: default_attrs