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.
7 8 9 10 11 12 13 |
# File 'lib/isodoc/xref/xref_anchor.rb', line 7 def initialize(xmldoc) @seen = {} # ignore all metanorma-extension ids xmldoc.xpath("//xmlns:metanorma-extension//*[@id]").each do |x| add(x["id"]) end end |