Class: Faa::Asciidoctor::OrmpMacro

Inherits:
Extensions::InlineMacroProcessor
  • Object
show all
Defined in:
lib/faa/asciidoctor/extension.rb

Instance Method Summary collapse

Instance Method Details

#process(parent, target, attrs) ⇒ Object



28
29
30
31
32
33
34
# File 'lib/faa/asciidoctor/extension.rb', line 28

def process(parent, target, attrs)
  doc = parent.document
  url = %(https://ormp.faa.gov)
  text = "ORMP Search Form"
  doc.register :links, url
  (create_anchor parent, text, type: :link, target: url).render
end