On this page
class Bundler::Molinillo::DependencyGraph::Action
An action that modifies a {DependencyGraph} that is reversible. @abstract
Attributes
next[RW]
@return [Action,Nil] The next action
previous[RW]
@return [Action,Nil] The previous action
Public Class Methods
# File lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/action.rb, line 11
def self.action_name
raise 'Abstract'
end
@return [Symbol] The name of the action.
Public Instance Methods
# File lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/action.rb, line 25
def down(graph)
raise 'Abstract'
end
Reverses the action on the given graph. @param [DependencyGraph] graph the graph to reverse the action on. @return [Void]
# File lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/action.rb, line 18
def up(graph)
raise 'Abstract'
end
Performs the action on the given graph. @param [DependencyGraph] graph the graph to perform the action on. @return [Void]
Ruby Core © 1993–2017 Yukihiro Matsumoto
Licensed under the Ruby License.
Ruby Standard Library © contributors
Licensed under their own licenses.