Class: Gem::Resolver::Molinillo::DependencyGraph::Action Abstract
Relationships & Source Files | |
Extension / Inclusion / Inheritance Descendants | |
Subclasses:
AddEdgeNoCircular, Gem::Resolver::Molinillo::DependencyGraph::AddVertex, DeleteEdge, DetachVertexNamed, Gem::Resolver::Molinillo::DependencyGraph::SetPayload, Tag
|
|
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 10
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 32
attr_accessor :next
#previous ⇒ Action
, Nil
(rw)
# File 'lib/rubygems/resolver/molinillo/lib/molinillo/dependency_graph/action.rb', line 29
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 24
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 17
def up(graph) raise 'Abstract' end