Class: Gem::Resolver::Molinillo::DependencyGraph::Action Abstract
- Inherits:
-
Object
- Object
- Gem::Resolver::Molinillo::DependencyGraph::Action
- Defined in:
- lib/rubygems/resolver/molinillo/lib/molinillo/dependency_graph/action.rb
Overview
This class is abstract.
An action that modifies a Gem::Resolver::Molinillo::DependencyGraph that is reversible.
Instance Attribute Summary collapse
-
#next ⇒ Action, Nil
The next action.
-
#previous ⇒ Action, Nil
The previous action.
Class Method Summary collapse
-
.action_name ⇒ Symbol
The name of the action.
Instance Method Summary collapse
-
#down(graph) ⇒ Void
Reverses the action on the given graph.
-
#up(graph) ⇒ Void
Performs the action on the given graph.
Instance Attribute Details
#next ⇒ Action, Nil
Returns The next action.
32 33 34 |
# File 'lib/rubygems/resolver/molinillo/lib/molinillo/dependency_graph/action.rb', line 32 def next @next end |
#previous ⇒ Action, Nil
Returns The previous action.
29 30 31 |
# File 'lib/rubygems/resolver/molinillo/lib/molinillo/dependency_graph/action.rb', line 29 def previous @previous end |
Class Method Details
.action_name ⇒ Symbol
Returns The name of the action.
10 11 12 |
# File 'lib/rubygems/resolver/molinillo/lib/molinillo/dependency_graph/action.rb', line 10 def self.action_name raise 'Abstract' end |
Instance Method Details
#down(graph) ⇒ Void
Reverses the action on the given graph.
24 25 26 |
# File 'lib/rubygems/resolver/molinillo/lib/molinillo/dependency_graph/action.rb', line 24 def down(graph) raise 'Abstract' end |
#up(graph) ⇒ Void
Performs the action on the given graph.
17 18 19 |
# File 'lib/rubygems/resolver/molinillo/lib/molinillo/dependency_graph/action.rb', line 17 def up(graph) raise 'Abstract' end |