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-3.1.3/lib/rubygems/resolver/molinillo/lib/molinillo/dependency_graph/action.rb, line 11
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-3.1.3/lib/rubygems/resolver/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]
lib/rubygems/resolver/molinillo/lib/molinillo/dependency_graph/action.rb
View on GitHub
# File tmp/rubies/ruby-3.1.3/lib/rubygems/resolver/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]