Module: Gem::Resolver::Molinillo::Delegates::ResolutionState

Included in:
Resolver::Resolution
Defined in:
lib/rubygems/resolver/molinillo/lib/molinillo/delegates/resolution_state.rb

Overview

Delegates all ResolutionState methods to a ‘#state` property.

Instance Method Summary collapse

Instance Method Details

#activatedObject

the graph of activated dependencies



20
21
22
23
# File 'lib/rubygems/resolver/molinillo/lib/molinillo/delegates/resolution_state.rb', line 20

def activated
  current_state = state || Gem::Resolver::Molinillo::ResolutionState.empty
  current_state.activated
end

#conflictsObject

unresolved conflicts



44
45
46
47
# File 'lib/rubygems/resolver/molinillo/lib/molinillo/delegates/resolution_state.rb', line 44

def conflicts
  current_state = state || Gem::Resolver::Molinillo::ResolutionState.empty
  current_state.conflicts
end

#depthObject

the depth of the resolution



38
39
40
41
# File 'lib/rubygems/resolver/molinillo/lib/molinillo/delegates/resolution_state.rb', line 38

def depth
  current_state = state || Gem::Resolver::Molinillo::ResolutionState.empty
  current_state.depth
end

#nameObject

the name of the current requirement



8
9
10
11
# File 'lib/rubygems/resolver/molinillo/lib/molinillo/delegates/resolution_state.rb', line 8

def name
  current_state = state || Gem::Resolver::Molinillo::ResolutionState.empty
  current_state.name
end

#possibilitiesObject

the possibilities to satisfy the current requirement



32
33
34
35
# File 'lib/rubygems/resolver/molinillo/lib/molinillo/delegates/resolution_state.rb', line 32

def possibilities
  current_state = state || Gem::Resolver::Molinillo::ResolutionState.empty
  current_state.possibilities
end

#requirementObject

the current requirement



26
27
28
29
# File 'lib/rubygems/resolver/molinillo/lib/molinillo/delegates/resolution_state.rb', line 26

def requirement
  current_state = state || Gem::Resolver::Molinillo::ResolutionState.empty
  current_state.requirement
end

#requirementsObject

currently unsatisfied requirements



14
15
16
17
# File 'lib/rubygems/resolver/molinillo/lib/molinillo/delegates/resolution_state.rb', line 14

def requirements
  current_state = state || Gem::Resolver::Molinillo::ResolutionState.empty
  current_state.requirements
end