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

Returns:



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

Returns:

  • (Hash)

    the current value of conflicts



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

def conflicts
  @conflicts
end

#depthInteger

the depth of the resolution

Returns:

  • (Integer)

    the current value of depth



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

Returns:

  • (String)

    the current value of name



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

Returns:

  • (Object)

    the current value of possibilities



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

def possibilities
  @possibilities
end

#requirementObject

the current requirement

Returns:

  • (Object)

    the current value of requirement



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

def requirement
  @requirement
end

#requirementsArray<Object>

currently unsatisfied requirements

Returns:

  • (Array<Object>)

    the current value of 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

Returns:

  • (Array<UnwindDetails>)

    the current value of unused_unwind_options



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

Returns:



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