Class: Bundler::Molinillo::Resolver::Resolution::PossibilitySet
- Inherits:
-
Struct
- Object
- Struct
- Bundler::Molinillo::Resolver::Resolution::PossibilitySet
- Defined in:
- lib/bundler/vendor/molinillo/lib/molinillo/resolution.rb,
lib/bundler/vendor/molinillo/lib/molinillo/resolution.rb
Overview
A collection of possibility states that share the same dependencies
Instance Attribute Summary collapse
-
#dependencies ⇒ Array
the dependencies for this set of possibilities.
-
#possibilities ⇒ Array
the possibilities.
Instance Method Summary collapse
-
#latest_version ⇒ Object
Most up-to-date dependency in the possibility set.
-
#to_s ⇒ Object
String representation of the possibility set, for debugging.
Instance Attribute Details
#dependencies ⇒ Array
the dependencies for this set of possibilities
41 42 43 |
# File 'lib/bundler/vendor/molinillo/lib/molinillo/resolution.rb', line 41 def dependencies @dependencies end |
#possibilities ⇒ Array
the possibilities
41 42 43 |
# File 'lib/bundler/vendor/molinillo/lib/molinillo/resolution.rb', line 41 def possibilities @possibilities end |
Instance Method Details
#latest_version ⇒ Object
Returns most up-to-date dependency in the possibility set.
50 51 52 |
# File 'lib/bundler/vendor/molinillo/lib/molinillo/resolution.rb', line 50 def latest_version possibilities.last end |
#to_s ⇒ Object
String representation of the possibility set, for debugging
45 46 47 |
# File 'lib/bundler/vendor/molinillo/lib/molinillo/resolution.rb', line 45 def to_s "[#{possibilities.join(', ')}]" end |