Class: Gem::Resolver::Molinillo::DependencyState (Ruby 2.3.4)

In Files

  • rubygems/resolver/molinillo/lib/molinillo/state.rb

Class/Module Index [+]

Quicksearch

Gem::Resolver::Molinillo::DependencyState

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

Public Instance Methods

pop_possibility_state()

Removes a possibility from `self` @return [PossibilityState] a state with a single possibility,

the possibility that was removed from %x`self`
 
               # File rubygems/resolver/molinillo/lib/molinillo/state.rb, line 35
def pop_possibility_state
  PossibilityState.new(
    name,
    requirements.dup,
    activated.dup,
    requirement,
    [possibilities.pop],
    depth + 1,
    conflicts.dup
  )
end