class Bundler::Molinillo::DependencyState

Parent:
Bundler::Molinillo::ResolutionState

A state that encapsulates a set of {#requirements} with an {Array} of possibilities

Public Instance Methods

pop_possibility_state() Show source
# File lib/bundler/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,
    unused_unwind_options.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`

Ruby Core © 1993–2017 Yukihiro Matsumoto
Licensed under the Ruby License.
Ruby Standard Library © contributors
Licensed under their own licenses.