Class: LockJar::Domain::Artifact
- Inherits:
-
Object
- Object
- LockJar::Domain::Artifact
- Includes:
- Comparable
- Defined in:
- lib/lock_jar/domain/artifact.rb
Instance Attribute Summary collapse
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
Instance Attribute Details
#type ⇒ Object (readonly)
Returns the value of attribute type.
26 27 28 |
# File 'lib/lock_jar/domain/artifact.rb', line 26 def type @type end |
Instance Method Details
#<=>(another_artifact) ⇒ Object
28 29 30 31 32 33 34 |
# File 'lib/lock_jar/domain/artifact.rb', line 28 def <=>(another_artifact) if another_artifact.is_a? Artifact to_urn <=> another_artifact.to_urn else to_urn <=> another_artifact.to_s end end |
#resolvable? ⇒ Boolean
36 37 38 |
# File 'lib/lock_jar/domain/artifact.rb', line 36 def resolvable? true end |