Class: Bundler::IncompleteSpecification
- Inherits:
-
Object
- Object
- Bundler::IncompleteSpecification
- Defined in:
- lib/bundler/incomplete_specification.rb
Overview
Represents a package name that was found to be incomplete when trying to materialize a fresh resolution or the lockfile.
Holds the actual partially complete set of specifications for the name. These are used so that they can be unlocked in a future resolution, and fix the situation.
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#partially_complete_specs ⇒ Object
readonly
Returns the value of attribute partially_complete_specs.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(name, partially_complete_specs = []) ⇒ IncompleteSpecification
constructor
A new instance of IncompleteSpecification.
Constructor Details
#initialize(name, partially_complete_specs = []) ⇒ IncompleteSpecification
Returns a new instance of IncompleteSpecification.
15 16 17 18 |
# File 'lib/bundler/incomplete_specification.rb', line 15 def initialize(name, partially_complete_specs = []) @name = name @partially_complete_specs = partially_complete_specs end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
13 14 15 |
# File 'lib/bundler/incomplete_specification.rb', line 13 def name @name end |
#partially_complete_specs ⇒ Object (readonly)
Returns the value of attribute partially_complete_specs.
13 14 15 |
# File 'lib/bundler/incomplete_specification.rb', line 13 def partially_complete_specs @partially_complete_specs end |
Instance Method Details
#==(other) ⇒ Object
20 21 22 |
# File 'lib/bundler/incomplete_specification.rb', line 20 def ==(other) partially_complete_specs == other.partially_complete_specs end |