Class: Glossarist::AssetReference

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of AssetReference.



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

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

Instance Attribute Details

#locationObject (readonly)

Returns the value of attribute location.



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

def location
  @location
end

#pathObject (readonly)

Returns the value of attribute path.



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

def path
  @path
end

Instance Method Details

#dedup_keyObject



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

def dedup_key
  path
end