Class: Gem::Resolver::Molinillo::ResolutionState
- Inherits:
 - 
      Struct
      
        
- Object
 - Struct
 - Gem::Resolver::Molinillo::ResolutionState
 
 
- 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
Instance Attribute Summary collapse
- 
  
    
      #activated  ⇒ DependencyGraph 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
the graph of activated dependencies.
 - 
  
    
      #conflicts  ⇒ Hash 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
unresolved conflicts, indexed by dependency name.
 - 
  
    
      #depth  ⇒ Integer 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
the depth of the resolution.
 - 
  
    
      #name  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
the name of the current requirement.
 - 
  
    
      #possibilities  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
the possibilities to satisfy the current requirement.
 - 
  
    
      #requirement  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
the current requirement.
 - 
  
    
      #requirements  ⇒ Array<Object> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
currently unsatisfied requirements.
 - 
  
    
      #unused_unwind_options  ⇒ Array<UnwindDetails> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
unwinds for previous conflicts that weren’t explored.
 
Class Method Summary collapse
- 
  
    
      .empty  ⇒ ResolutionState 
    
    
  
  
  
  
  
  
  
  
  
    
Returns an empty resolution state.
 
Instance Attribute Details
#activated ⇒ DependencyGraph
the graph of activated dependencies
      13 14 15  | 
    
      # File 'lib/rubygems/resolver/molinillo/lib/molinillo/state.rb', line 13 def activated @activated end  | 
  
#conflicts ⇒ Hash
unresolved conflicts, indexed by dependency name
      13 14 15  | 
    
      # File 'lib/rubygems/resolver/molinillo/lib/molinillo/state.rb', line 13 def conflicts @conflicts end  | 
  
#depth ⇒ Integer
the depth of the resolution
      13 14 15  | 
    
      # File 'lib/rubygems/resolver/molinillo/lib/molinillo/state.rb', line 13 def depth @depth end  | 
  
#name ⇒ String
the name of the current requirement
      13 14 15  | 
    
      # File 'lib/rubygems/resolver/molinillo/lib/molinillo/state.rb', line 13 def name @name end  | 
  
#possibilities ⇒ Object
the possibilities to satisfy the current requirement
      13 14 15  | 
    
      # File 'lib/rubygems/resolver/molinillo/lib/molinillo/state.rb', line 13 def possibilities @possibilities end  | 
  
#requirement ⇒ Object
the current requirement
      13 14 15  | 
    
      # File 'lib/rubygems/resolver/molinillo/lib/molinillo/state.rb', line 13 def requirement @requirement end  | 
  
#requirements ⇒ Array<Object>
currently unsatisfied requirements
      13 14 15  | 
    
      # File 'lib/rubygems/resolver/molinillo/lib/molinillo/state.rb', line 13 def requirements @requirements end  | 
  
#unused_unwind_options ⇒ Array<UnwindDetails>
unwinds for previous conflicts that weren’t explored
      13 14 15  | 
    
      # File 'lib/rubygems/resolver/molinillo/lib/molinillo/state.rb', line 13 def @unused_unwind_options end  | 
  
Class Method Details
.empty ⇒ ResolutionState
Returns an empty resolution state
      27 28 29  | 
    
      # File 'lib/rubygems/resolver/molinillo/lib/molinillo/state.rb', line 27 def self.empty new(nil, [], DependencyGraph.new, nil, nil, 0, {}, []) end  |