Class: LockJar::Domain::Local
- Defined in:
- lib/lock_jar/domain/artifact.rb
Instance Attribute Summary collapse
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Attributes inherited from Artifact
Instance Method Summary collapse
-
#initialize(path) ⇒ Local
constructor
A new instance of Local.
- #resolvable? ⇒ Boolean
- #to_dep ⇒ Object
- #to_urn ⇒ Object
Methods inherited from Artifact
Constructor Details
#initialize(path) ⇒ Local
Returns a new instance of Local.
59 60 61 62 |
# File 'lib/lock_jar/domain/artifact.rb', line 59 def initialize(path) @type = 'local' @path = path end |
Instance Attribute Details
#path ⇒ Object (readonly)
Returns the value of attribute path.
58 59 60 |
# File 'lib/lock_jar/domain/artifact.rb', line 58 def path @path end |
Instance Method Details
#resolvable? ⇒ Boolean
72 73 74 |
# File 'lib/lock_jar/domain/artifact.rb', line 72 def resolvable? false end |
#to_dep ⇒ Object
68 69 70 |
# File 'lib/lock_jar/domain/artifact.rb', line 68 def to_dep path end |
#to_urn ⇒ Object
64 65 66 |
# File 'lib/lock_jar/domain/artifact.rb', line 64 def to_urn "local:#{path}" end |