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 current value of activated.
-
#conflicts ⇒ Set<Object>
The current value of conflicts.
-
#depth ⇒ Integer
The current value of depth.
-
#name ⇒ String
The current value of name.
-
#possibilities ⇒ Object
Returns the value of attribute possibilities.
-
#possibility ⇒ Object
The current value of possibility.
-
#requirement ⇒ Object
The current value of requirement.
-
#requirements ⇒ Array<Object>
The current value of requirements.
Class Method Summary collapse
-
.empty ⇒ ResolutionState
Returns an empty resolution state.
Instance Attribute Details
#activated ⇒ DependencyGraph
Returns the current value of activated.
11 12 13 |
# File 'lib/rubygems/resolver/molinillo/lib/molinillo/state.rb', line 11 def activated @activated end |
#conflicts ⇒ Set<Object>
Returns 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
Returns 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
Returns 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
Returns the value of attribute possibilities
11 12 13 |
# File 'lib/rubygems/resolver/molinillo/lib/molinillo/state.rb', line 11 def possibilities @possibilities end |
#possibility ⇒ Object
Returns the current value of possibility.
21 22 23 |
# File 'lib/rubygems/resolver/molinillo/lib/molinillo/state.rb', line 21 def possibility @possibility end |
#requirement ⇒ Object
Returns 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>
Returns 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
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 |