Class: Gem::Molinillo::DependencyState
- Inherits:
-
ResolutionState
- Object
- Struct
- ResolutionState
- Gem::Molinillo::DependencyState
- Defined in:
- lib/rubygems/vendor/molinillo/lib/molinillo/state.rb
Overview
A state that encapsulates a set of ResolutionState#requirements with an Array of possibilities
Instance Attribute Summary
Attributes inherited from ResolutionState
#activated, #conflicts, #depth, #name, #possibilities, #requirement, #requirements, #unused_unwind_options
Instance Method Summary collapse
-
#pop_possibility_state ⇒ PossibilityState
Removes a possibility from ‘self`.
Methods inherited from ResolutionState
Instance Method Details
#pop_possibility_state ⇒ PossibilityState
Removes a possibility from ‘self`
38 39 40 41 42 43 44 45 46 47 48 49 50 51 |
# File 'lib/rubygems/vendor/molinillo/lib/molinillo/state.rb', line 38 def pop_possibility_state PossibilityState.new( name, requirements.dup, activated, requirement, [possibilities.pop], depth + 1, conflicts.dup, .dup ).tap do |state| state.activated.tag(state) end end |