Class: Gem::Molinillo::ResolutionState

Inherits:
Struct
  • Object
show all
Defined in:
lib/rubygems/vendor/molinillo/lib/molinillo/state.rb,
lib/rubygems/vendor/molinillo/lib/molinillo/state.rb

Overview

A state that a Resolution can be in

Direct Known Subclasses

DependencyState, PossibilityState

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#activatedDependencyGraph

the graph of activated dependencies



13
14
15
# File 'lib/rubygems/vendor/molinillo/lib/molinillo/state.rb', line 13

def activated
  @activated
end

#conflictsHash

unresolved conflicts, indexed by dependency name



13
14
15
# File 'lib/rubygems/vendor/molinillo/lib/molinillo/state.rb', line 13

def conflicts
  @conflicts
end

#depthInteger

the depth of the resolution



13
14
15
# File 'lib/rubygems/vendor/molinillo/lib/molinillo/state.rb', line 13

def depth
  @depth
end

#nameString

the name of the current requirement



13
14
15
# File 'lib/rubygems/vendor/molinillo/lib/molinillo/state.rb', line 13

def name
  @name
end

#possibilitiesObject

the possibilities to satisfy the current requirement



13
14
15
# File 'lib/rubygems/vendor/molinillo/lib/molinillo/state.rb', line 13

def possibilities
  @possibilities
end

#requirementObject

the current requirement



13
14
15
# File 'lib/rubygems/vendor/molinillo/lib/molinillo/state.rb', line 13

def requirement
  @requirement
end

#requirementsArray<Object>

currently unsatisfied requirements



13
14
15
# File 'lib/rubygems/vendor/molinillo/lib/molinillo/state.rb', line 13

def requirements
  @requirements
end

#unused_unwind_optionsArray<UnwindDetails>

unwinds for previous conflicts that weren’t explored



13
14
15
# File 'lib/rubygems/vendor/molinillo/lib/molinillo/state.rb', line 13

def unused_unwind_options
  @unused_unwind_options
end

Class Method Details

.emptyResolutionState

Returns an empty resolution state



27
28
29
# File 'lib/rubygems/vendor/molinillo/lib/molinillo/state.rb', line 27

def self.empty
  new(nil, [], DependencyGraph.new, nil, nil, 0, {}, [])
end