Class: Gem::Resolver::Molinillo::DependencyGraph::Action Abstract

Inherits:
Object
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#nextAction, Nil

Returns The next action.

Returns:

  • (Action, Nil)

    The next action



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

def next
  @next
end

#previousAction, Nil

Returns The previous action.

Returns:

  • (Action, Nil)

    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_nameSymbol

Returns The name of the action.

Returns:

  • (Symbol)

    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.

Parameters:

Returns:

  • (Void)


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.

Parameters:

Returns:

  • (Void)


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

def up(graph)
  raise 'Abstract'
end