Class: MilkTea::PackageSourceResolver::PathIdentity
- Inherits:
-
SourceIdentity
- Object
- SourceIdentity
- MilkTea::PackageSourceResolver::PathIdentity
- Defined in:
- lib/milk_tea/packages/source_resolver.rb
Instance Attribute Summary collapse
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(path) ⇒ PathIdentity
constructor
A new instance of PathIdentity.
- #kind ⇒ Object
- #lock_attributes ⇒ Object
Methods inherited from SourceIdentity
Constructor Details
#initialize(path) ⇒ PathIdentity
Returns a new instance of PathIdentity.
34 35 36 |
# File 'lib/milk_tea/packages/source_resolver.rb', line 34 def initialize(path) @path = File.(path) end |
Instance Attribute Details
#path ⇒ Object (readonly)
Returns the value of attribute path.
32 33 34 |
# File 'lib/milk_tea/packages/source_resolver.rb', line 32 def path @path end |
Instance Method Details
#kind ⇒ Object
38 39 40 |
# File 'lib/milk_tea/packages/source_resolver.rb', line 38 def kind :path end |
#lock_attributes ⇒ Object
42 43 44 45 46 |
# File 'lib/milk_tea/packages/source_resolver.rb', line 42 def lock_attributes { "source_path" => @path, } end |