Class: Glossarist::AssetReference

Inherits:
Object
  • Object
show all
Includes:
Reference
Defined in:
lib/glossarist/asset_reference.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Reference

#cite?, #external?, #local?

Constructor Details

#initialize(path:, location: nil) ⇒ AssetReference

Returns a new instance of AssetReference.



9
10
11
12
# File 'lib/glossarist/asset_reference.rb', line 9

def initialize(path:, location: nil)
  @path = path
  @location = location
end

Instance Attribute Details

#locationObject (readonly)

Returns the value of attribute location.



7
8
9
# File 'lib/glossarist/asset_reference.rb', line 7

def location
  @location
end

#pathObject (readonly)

Returns the value of attribute path.



7
8
9
# File 'lib/glossarist/asset_reference.rb', line 7

def path
  @path
end

Instance Method Details

#dedup_keyObject



14
15
16
# File 'lib/glossarist/asset_reference.rb', line 14

def dedup_key
  path
end