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

Inherits:
Object
  • Object
show all
Defined in:
lib/rubygems/vendor/molinillo/lib/molinillo/dependency_graph/action.rb

Overview

This class is abstract.

An action that modifies a Gem::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



33
34
35
# File 'lib/rubygems/vendor/molinillo/lib/molinillo/dependency_graph/action.rb', line 33

def next
  @next
end

#previousAction, Nil

Returns The previous action.

Returns:

  • (Action, Nil)

    The previous action



30
31
32
# File 'lib/rubygems/vendor/molinillo/lib/molinillo/dependency_graph/action.rb', line 30

def previous
  @previous
end

Class Method Details

.action_nameSymbol

Returns The name of the action.

Returns:

  • (Symbol)

    The name of the action.



11
12
13
# File 'lib/rubygems/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.

Parameters:

Returns:

  • (Void)


25
26
27
# File 'lib/rubygems/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.

Parameters:

Returns:

  • (Void)


18
19
20
# File 'lib/rubygems/vendor/molinillo/lib/molinillo/dependency_graph/action.rb', line 18

def up(graph)
  raise 'Abstract'
end