Class: Glossarist::AssetReference
- Inherits:
-
Object
- Object
- Glossarist::AssetReference
- Includes:
- Reference
- 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.
Methods included from Reference
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
#location ⇒ Object (readonly)
Returns the value of attribute location.
7 8 9 |
# File 'lib/glossarist/asset_reference.rb', line 7 def location @location end |
#path ⇒ Object (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_key ⇒ Object
14 15 16 |
# File 'lib/glossarist/asset_reference.rb', line 14 def dedup_key path end |