Class: Buildpack::ManifestDependency
- Inherits:
-
Object
- Object
- Buildpack::ManifestDependency
- Defined in:
- lib/buildpack/manifest_dependency.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#version ⇒ Object
readonly
Returns the value of attribute version.
Instance Method Summary collapse
- #==(other_object) ⇒ Object
-
#initialize(name, version) ⇒ ManifestDependency
constructor
A new instance of ManifestDependency.
Constructor Details
#initialize(name, version) ⇒ ManifestDependency
Returns a new instance of ManifestDependency.
5 6 7 8 |
# File 'lib/buildpack/manifest_dependency.rb', line 5 def initialize(name, version) @name = name @version = version end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'lib/buildpack/manifest_dependency.rb', line 3 def name @name end |
#version ⇒ Object (readonly)
Returns the value of attribute version.
3 4 5 |
# File 'lib/buildpack/manifest_dependency.rb', line 3 def version @version end |
Instance Method Details
#==(other_object) ⇒ Object
10 11 12 |
# File 'lib/buildpack/manifest_dependency.rb', line 10 def ==(other_object) name == other_object.name && version == other_object.version end |