Method: IsoDoc::Function::XrefGen#anchor
- Defined in:
- lib/isodoc/function/xref_gen.rb
#anchor(id, lbl, warning = true) ⇒ Object
13 14 15 16 17 18 19 |
# File 'lib/isodoc/function/xref_gen.rb', line 13 def anchor(id, lbl, warning = true) unless @anchors[id] warning and warn "No label has been processed for ID #{id}" return "[#{id}]" end @anchors.dig(id, lbl) end |