Class: Glossarist::BibliographicReference

Inherits:
Object
  • Object
show all
Defined in:
lib/glossarist/bibliographic_reference.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#anchorObject (readonly)

Returns the value of attribute anchor.



5
6
7
# File 'lib/glossarist/bibliographic_reference.rb', line 5

def anchor
  @anchor
end

#locationObject (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_keyObject



12
13
14
# File 'lib/glossarist/bibliographic_reference.rb', line 12

def dedup_key
  anchor
end