An action that modifies a {DependencyGraph} that is reversible. @abstract
Attributes
Read & Write
@return [Action,Nil] The previous action
Read & Write
@return [Action,Nil] The next action
Class Methods
::
lib/rubygems/resolver/molinillo/lib/molinillo/dependency_graph/action.rb
View on GitHub
# File tmp/rubies/ruby-2.6.10/lib/rubygems/resolver/molinillo/lib/molinillo/dependency_graph/action.rb, line 10
def self.action_name
raise 'Abstract'
end
@return [Symbol] The name of the action.
Instance Methods
lib/rubygems/resolver/molinillo/lib/molinillo/dependency_graph/action.rb
View on GitHub
# File tmp/rubies/ruby-2.6.10/lib/rubygems/resolver/molinillo/lib/molinillo/dependency_graph/action.rb, line 24
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]
lib/rubygems/resolver/molinillo/lib/molinillo/dependency_graph/action.rb
View on GitHub
# File tmp/rubies/ruby-2.6.10/lib/rubygems/resolver/molinillo/lib/molinillo/dependency_graph/action.rb, line 17
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]