Class: Bundler::Molinillo::DependencyGraph::Action Abstract
- Inherits:
-
Object
- Object
- Bundler::Molinillo::DependencyGraph::Action
- Defined in:
- lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/action.rb
Overview
This class is abstract.
An action that modifies a Bundler::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.
33 34 35 |
# File 'lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/action.rb', line 33 def next @next end |
#previous ⇒ Action, Nil
Returns The previous action.
30 31 32 |
# File 'lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/action.rb', line 30 def previous @previous end |
Class Method Details
.action_name ⇒ Symbol
Returns The name of the action.
11 12 13 |
# File 'lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/action.rb', line 11 def self.action_name raise 'Abstract' end |
Instance Method Details
#down(graph) ⇒ Void
Reverses the action on the given graph.
25 26 27 |
# File 'lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/action.rb', line 25 def down(graph) raise 'Abstract' end |
#up(graph) ⇒ Void
Performs the action on the given graph.
18 19 20 |
# File 'lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/action.rb', line 18 def up(graph) raise 'Abstract' end |