123456789_123456789_123456789_123456789_123456789_

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

Class Method Details

.action_nameSymbol

Returns:

  • (Symbol)

    The name of the action.

[ GitHub ]

  
# File 'lib/rubygems/resolver/molinillo/lib/molinillo/dependency_graph/action.rb', line 10

def self.action_name
  raise 'Abstract'
end

Instance Attribute Details

#nextAction, Nil (rw)

Returns:

  • (Action, Nil)

    The next action

[ GitHub ]

  
# File 'lib/rubygems/resolver/molinillo/lib/molinillo/dependency_graph/action.rb', line 32

attr_accessor :next

#previousAction, Nil (rw)

Returns:

  • (Action, Nil)

    The previous action

[ GitHub ]

  
# 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.

Parameters:

[ GitHub ]

  
# 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.

Parameters:

[ GitHub ]

  
# File 'lib/rubygems/resolver/molinillo/lib/molinillo/dependency_graph/action.rb', line 17

def up(graph)
  raise 'Abstract'
end