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.
60 61 62 63 |
# File 'lib/lock_jar/domain/artifact.rb', line 60 def initialize( path ) @type = 'local' @path = path end |
Instance Attribute Details
#path ⇒ Object (readonly)
Returns the value of attribute path.
59 60 61 |
# File 'lib/lock_jar/domain/artifact.rb', line 59 def path @path end |
Instance Method Details
#resolvable? ⇒ Boolean
73 74 75 |
# File 'lib/lock_jar/domain/artifact.rb', line 73 def resolvable? false end |
#to_dep ⇒ Object
69 70 71 |
# File 'lib/lock_jar/domain/artifact.rb', line 69 def to_dep path end |
#to_urn ⇒ Object
65 66 67 |
# File 'lib/lock_jar/domain/artifact.rb', line 65 def to_urn "local:#{path}" end |