Class: Gem::Resolver::Molinillo::DependencyGraph::Action Abstract
Relationships & Source Files | |
Extension / Inclusion / Inheritance Descendants | |
Subclasses:
|
|
Inherits: | Object |
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.
Class Method Summary
Instance Attribute Summary
Instance Method Summary
-
#down(graph) ⇒ Void
Reverses the action on the given graph.
-
#up(graph) ⇒ Void
Performs the action on the given graph.
Class Method Details
.action_name ⇒ Symbol
# File 'lib/rubygems/resolver/molinillo/lib/molinillo/dependency_graph/action.rb', line 11
def self.action_name raise 'Abstract' end
Instance Attribute Details
#next ⇒ Action
, Nil
(rw)
# File 'lib/rubygems/resolver/molinillo/lib/molinillo/dependency_graph/action.rb', line 33
attr_accessor :next
#previous ⇒ Action
, Nil
(rw)
# File 'lib/rubygems/resolver/molinillo/lib/molinillo/dependency_graph/action.rb', line 30
attr_accessor :previous
Instance Method Details
#down(graph) ⇒ Void
Reverses the action on the given graph.
# File 'lib/rubygems/resolver/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.
# File 'lib/rubygems/resolver/molinillo/lib/molinillo/dependency_graph/action.rb', line 18
def up(graph) raise 'Abstract' end