Class: Glossarist::BibliographicReference
- Inherits:
-
Object
- Object
- Glossarist::BibliographicReference
- Includes:
- Reference
- Defined in:
- lib/glossarist/bibliographic_reference.rb
Overview
A reference to a bibliographic entry (an external document), distinct from a ConceptReference (a cross-reference to another concept in the same or another registry).
BibliographicReference is produced by ReferenceExtractor from AsciiDoc
<cite? / local? / external? without
type-checking. All three predicates default to false (a bibliographic
reference is never an inline {{cite:id}} mention, never a concept
cross-ref).
Instance Attribute Summary collapse
-
#anchor ⇒ Object
readonly
Returns the value of attribute anchor.
-
#location ⇒ Object
readonly
Returns the value of attribute location.
Instance Method Summary collapse
- #dedup_key ⇒ Object
-
#initialize(anchor:, location: nil) ⇒ BibliographicReference
constructor
A new instance of BibliographicReference.
Methods included from Reference
Constructor Details
#initialize(anchor:, location: nil) ⇒ BibliographicReference
Returns a new instance of BibliographicReference.
20 21 22 23 |
# File 'lib/glossarist/bibliographic_reference.rb', line 20 def initialize(anchor:, location: nil) @anchor = anchor @location = location end |
Instance Attribute Details
#anchor ⇒ Object (readonly)
Returns the value of attribute anchor.
18 19 20 |
# File 'lib/glossarist/bibliographic_reference.rb', line 18 def anchor @anchor end |
#location ⇒ Object (readonly)
Returns the value of attribute location.
18 19 20 |
# File 'lib/glossarist/bibliographic_reference.rb', line 18 def location @location end |
Instance Method Details
#dedup_key ⇒ Object
25 26 27 |
# File 'lib/glossarist/bibliographic_reference.rb', line 25 def dedup_key anchor end |