A state that encapsulates a set of {#requirements} with an {Array} of possibilities
Instance Methods
lib/rubygems/resolver/molinillo/lib/molinillo/state.rb
View on GitHub
# File tmp/rubies/ruby-2.6.10/lib/rubygems/resolver/molinillo/lib/molinillo/state.rb, line 35
def pop_possibility_state
PossibilityState.new(
name,
requirements.dup,
activated,
requirement,
[possibilities.pop],
depth + 1,
conflicts.dup
).tap do |state|
state.activated.tag(state)
end
end
Removes a possibility from ‘self` @return [PossibilityState] a state with a single possibility,
the possibility that was removed from `self`