Class/Module Index [+]

Quicksearch

Asciidoctor::DocBook45::InlineAnchorTemplate

Public Instance Methods

anchor(target, text, type) click to toggle source
# File lib/asciidoctor/backends/docbook45.rb, line 701
def anchor(target, text, type)
  case type
  when :ref
    %(<anchor id="#{target}" xreflabel="#{text}"/>)
  when :xref
    text.nil? ? %(<xref linkend="#{target}"/>) : %(<link linkend="#{target}">#{text}</link>)
  when :link
    %(<ulink url="#{target}">#{text}</ulink>)
  when :bibref
    %(<anchor id="#{target}" xreflabel="[#{target}]"/>[#{target}])
  end
end
result(node) click to toggle source
# File lib/asciidoctor/backends/docbook45.rb, line 714
def result(node)
  anchor(node.target, node.text, node.type)
end
template() click to toggle source
# File lib/asciidoctor/backends/docbook45.rb, line 718
def template
  :invoke_result
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.