Module: Molinillo::Delegates::ResolutionState
- Included in:
- Resolver::Resolution
- Defined in:
- lib/molinillo/delegates/resolution_state.rb
Overview
Delegates all ResolutionState methods to a ‘#state` property.
Instance Method Summary collapse
-
#activated ⇒ Object
the graph of activated dependencies.
-
#conflicts ⇒ Object
unresolved conflicts, indexed by dependency name.
-
#depth ⇒ Object
the depth of the resolution.
-
#name ⇒ Object
the name of the current requirement.
-
#possibilities ⇒ Object
the possibilities to satisfy the current requirement.
-
#requirement ⇒ Object
the current requirement.
-
#requirements ⇒ Object
currently unsatisfied requirements.
-
#unused_unwind_options ⇒ Object
unwinds for previous conflicts that weren’t explored.
Instance Method Details
#activated ⇒ Object
the graph of activated dependencies
21 22 23 24 |
# File 'lib/molinillo/delegates/resolution_state.rb', line 21 def activated current_state = state || Molinillo::ResolutionState.empty current_state.activated end |
#conflicts ⇒ Object
unresolved conflicts, indexed by dependency name
45 46 47 48 |
# File 'lib/molinillo/delegates/resolution_state.rb', line 45 def conflicts current_state = state || Molinillo::ResolutionState.empty current_state.conflicts end |
#depth ⇒ Object
the depth of the resolution
39 40 41 42 |
# File 'lib/molinillo/delegates/resolution_state.rb', line 39 def depth current_state = state || Molinillo::ResolutionState.empty current_state.depth end |
#name ⇒ Object
the name of the current requirement
9 10 11 12 |
# File 'lib/molinillo/delegates/resolution_state.rb', line 9 def name current_state = state || Molinillo::ResolutionState.empty current_state.name end |
#possibilities ⇒ Object
the possibilities to satisfy the current requirement
33 34 35 36 |
# File 'lib/molinillo/delegates/resolution_state.rb', line 33 def possibilities current_state = state || Molinillo::ResolutionState.empty current_state.possibilities end |
#requirement ⇒ Object
the current requirement
27 28 29 30 |
# File 'lib/molinillo/delegates/resolution_state.rb', line 27 def requirement current_state = state || Molinillo::ResolutionState.empty current_state.requirement end |
#requirements ⇒ Object
currently unsatisfied requirements
15 16 17 18 |
# File 'lib/molinillo/delegates/resolution_state.rb', line 15 def requirements current_state = state || Molinillo::ResolutionState.empty current_state.requirements end |
#unused_unwind_options ⇒ Object
unwinds for previous conflicts that weren’t explored
51 52 53 54 |
# File 'lib/molinillo/delegates/resolution_state.rb', line 51 def current_state = state || Molinillo::ResolutionState.empty current_state. end |