Class: Asciidoctor::Standoc::InheritInlineMacro

Inherits:
Extensions::InlineMacroProcessor
  • Object
show all
Defined in:
lib/asciidoctor/standoc/macros.rb

Instance Method Summary collapse

Instance Method Details

#process(parent, _target, attrs) ⇒ Object



23
24
25
26
# File 'lib/asciidoctor/standoc/macros.rb', line 23

def process(parent, _target, attrs)
  out = Asciidoctor::Inline.new(parent, :quoted, attrs["text"]).convert
  %{<inherit>#{out}</inherit>}
end