123456789_123456789_123456789_123456789_123456789_

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

Relationships & Source Files
Extension / Inclusion / Inheritance Descendants
Subclasses:
Inherits: Object
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.

Class Method Summary

Instance Attribute Summary

Instance Method Summary

Class Method Details

.action_nameSymbol

Returns:

  • (Symbol)

    The name of the action.

[ GitHub ]

  
# File 'lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/action.rb', line 11

def self.action_name
  raise 'Abstract'
end

Instance Attribute Details

#nextAction, Nil (rw)

Returns:

  • (Action, Nil)

    The next action

[ GitHub ]

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

attr_accessor :next

#previousAction, Nil (rw)

Returns:

  • (Action, Nil)

    The previous action

[ GitHub ]

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

attr_accessor :previous

Instance Method Details

#down(graph) ⇒ Void

Reverses the action on the given graph.

Parameters:

[ GitHub ]

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

Parameters:

[ GitHub ]

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

def up(graph)
  raise 'Abstract'
end