Module: Gem::Resolver::Molinillo::Delegates::ResolutionState
- Included in:
- Resolver::Resolution
- Defined in:
- lib/rubygems/resolver/molinillo/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.
-
#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.
Instance Method Details
#activated ⇒ Object
the graph of activated dependencies
20 21 22 23 |
# File 'lib/rubygems/resolver/molinillo/lib/molinillo/delegates/resolution_state.rb', line 20 def activated current_state = state || Gem::Resolver::Molinillo::ResolutionState.empty current_state.activated end |
#conflicts ⇒ Object
unresolved conflicts
44 45 46 47 |
# File 'lib/rubygems/resolver/molinillo/lib/molinillo/delegates/resolution_state.rb', line 44 def conflicts current_state = state || Gem::Resolver::Molinillo::ResolutionState.empty current_state.conflicts end |
#depth ⇒ Object
the depth of the resolution
38 39 40 41 |
# File 'lib/rubygems/resolver/molinillo/lib/molinillo/delegates/resolution_state.rb', line 38 def depth current_state = state || Gem::Resolver::Molinillo::ResolutionState.empty current_state.depth end |
#name ⇒ Object
the name of the current requirement
8 9 10 11 |
# File 'lib/rubygems/resolver/molinillo/lib/molinillo/delegates/resolution_state.rb', line 8 def name current_state = state || Gem::Resolver::Molinillo::ResolutionState.empty current_state.name end |
#possibilities ⇒ Object
the possibilities to satisfy the current requirement
32 33 34 35 |
# File 'lib/rubygems/resolver/molinillo/lib/molinillo/delegates/resolution_state.rb', line 32 def possibilities current_state = state || Gem::Resolver::Molinillo::ResolutionState.empty current_state.possibilities end |
#requirement ⇒ Object
the current requirement
26 27 28 29 |
# File 'lib/rubygems/resolver/molinillo/lib/molinillo/delegates/resolution_state.rb', line 26 def requirement current_state = state || Gem::Resolver::Molinillo::ResolutionState.empty current_state.requirement end |
#requirements ⇒ Object
currently unsatisfied requirements
14 15 16 17 |
# File 'lib/rubygems/resolver/molinillo/lib/molinillo/delegates/resolution_state.rb', line 14 def requirements current_state = state || Gem::Resolver::Molinillo::ResolutionState.empty current_state.requirements end |