Class: Bundler::Molinillo::DependencyGraph::Action Abstract

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

Overview

This class is abstract.

An action that modifies a Bundler::Molinillo::DependencyGraph that is reversible.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#nextAction, Nil



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

def next
  @next
end

#previousAction, Nil



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

def previous
  @previous
end

Class Method Details

.action_nameSymbol



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



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



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

def up(graph)
  raise 'Abstract'
end