Class: Glossarist::BibliographicReference
- Inherits:
-
Object
- Object
- Glossarist::BibliographicReference
- Defined in:
- lib/glossarist/bibliographic_reference.rb
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.
Constructor Details
#initialize(anchor:, location: nil) ⇒ BibliographicReference
Returns a new instance of BibliographicReference.
7 8 9 10 |
# File 'lib/glossarist/bibliographic_reference.rb', line 7 def initialize(anchor:, location: nil) @anchor = anchor @location = location end |
Instance Attribute Details
#anchor ⇒ Object (readonly)
Returns the value of attribute anchor.
5 6 7 |
# File 'lib/glossarist/bibliographic_reference.rb', line 5 def anchor @anchor end |
#location ⇒ Object (readonly)
Returns the value of attribute location.
5 6 7 |
# File 'lib/glossarist/bibliographic_reference.rb', line 5 def location @location end |
Instance Method Details
#dedup_key ⇒ Object
12 13 14 |
# File 'lib/glossarist/bibliographic_reference.rb', line 12 def dedup_key anchor end |