Class: IsoDoc::XrefGen::Anchor::SeenAnchor
- Defined in:
- lib/isodoc/xref/xref_anchor.rb
Instance Method Summary collapse
- #add(elem) ⇒ Object
-
#initialize(xmldoc) ⇒ SeenAnchor
constructor
A new instance of SeenAnchor.
- #seen(elem) ⇒ Object
Constructor Details
#initialize(xmldoc) ⇒ SeenAnchor
Returns a new instance of SeenAnchor.
8 9 10 11 12 13 14 |
# File 'lib/isodoc/xref/xref_anchor.rb', line 8 def initialize(xmldoc) @seen = {} # ignore all metanorma-extension ids xmldoc.xpath("//xmlns:metanorma-extension//*[@id]").each do |x| add(x["id"]) end end |