Class: Glossarist::AssetReference
- Inherits:
-
Object
- Object
- Glossarist::AssetReference
- Defined in:
- lib/glossarist/asset_reference.rb
Instance Attribute Summary collapse
-
#location ⇒ Object
readonly
Returns the value of attribute location.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
- #dedup_key ⇒ Object
-
#initialize(path:, location: nil) ⇒ AssetReference
constructor
A new instance of AssetReference.
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
#location ⇒ Object (readonly)
Returns the value of attribute location.
5 6 7 |
# File 'lib/glossarist/asset_reference.rb', line 5 def location @location end |
#path ⇒ Object (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_key ⇒ Object
12 13 14 |
# File 'lib/glossarist/asset_reference.rb', line 12 def dedup_key path end |