Class: Gem::Resolver::Molinillo::ResolutionState

Inherits:
Struct
  • Object
show all
Defined in:
lib/rubygems/resolver/molinillo/lib/molinillo/state.rb,
lib/rubygems/resolver/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

#activated ⇒ DependencyGraph

the graph of activated dependencies

Returns:



11
12
13
# File 'lib/rubygems/resolver/molinillo/lib/molinillo/state.rb', line 11

def activated
  @activated
end

#conflicts ⇒ Set<Object>

unresolved conflicts

Returns:

  • (Set<Object>) —

    the current value of conflicts



11
12
13
# File 'lib/rubygems/resolver/molinillo/lib/molinillo/state.rb', line 11

def conflicts
  @conflicts
end

#depth ⇒ Integer

the depth of the resolution

Returns:

  • (Integer) —

    the current value of depth



11
12
13
# File 'lib/rubygems/resolver/molinillo/lib/molinillo/state.rb', line 11

def depth
  @depth
end

#name ⇒ String

the name of the current requirement

Returns:

  • (String) —

    the current value of name



11
12
13
# File 'lib/rubygems/resolver/molinillo/lib/molinillo/state.rb', line 11

def name
  @name
end

#possibilities ⇒ Object

the possibilities to satisfy the current requirement

Returns:

  • (Object) —

    the current value of possibilities



11
12
13
# File 'lib/rubygems/resolver/molinillo/lib/molinillo/state.rb', line 11

def possibilities
  @possibilities
end

#requirement ⇒ Object

the current requirement

Returns:

  • (Object) —

    the current value of requirement



11
12
13
# File 'lib/rubygems/resolver/molinillo/lib/molinillo/state.rb', line 11

def requirement
  @requirement
end

#requirements ⇒ Array<Object>

currently unsatisfied requirements

Returns:

  • (Array<Object>) —

    the current value of requirements



11
12
13
# File 'lib/rubygems/resolver/molinillo/lib/molinillo/state.rb', line 11

def requirements
  @requirements
end

Class Method Details

.empty ⇒ ResolutionState

Returns an empty resolution state

Returns:



24
25
26
# File 'lib/rubygems/resolver/molinillo/lib/molinillo/state.rb', line 24

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