123456789_123456789_123456789_123456789_123456789_

Class: Gem::Molinillo::DependencyGraph::Tag

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, Action
Instance Chain:
self, Action
Inherits: Gem::Molinillo::DependencyGraph::Action
Defined in: lib/rubygems/vendor/molinillo/lib/molinillo/dependency_graph/tag.rb

Overview

See Also:

Action

Tag

Class Method Summary

Action - Inherited

Instance Attribute Summary

Action - Inherited

Instance Method Summary

Action - Inherited

#down

Reverses the action on the given graph.

#up

Performs the action on the given graph.

Constructor Details

.new(tag) ⇒ Tag

Initialize an action to tag a state of a dependency graph

Parameters:

  • tag (Object)

    an opaque tag

[ GitHub ]

  
# File 'lib/rubygems/vendor/molinillo/lib/molinillo/dependency_graph/tag.rb', line 31

def initialize(tag)
  @tag = tag
end

Class Method Details

.action_nameSymbol

Returns:

  • (Symbol)

    The name of the action.

[ GitHub ]

  
# File 'lib/rubygems/vendor/molinillo/lib/molinillo/dependency_graph/tag.rb', line 12

def self.action_name
  :tag
end

Instance Attribute Details

#tagObject (readonly)

Returns:

  • (Object)

    An opaque tag

[ GitHub ]

  
# File 'lib/rubygems/vendor/molinillo/lib/molinillo/dependency_graph/tag.rb', line 27

attr_reader :tag

Instance Method Details

#down(graph) ⇒ Void

Reverses the action on the given graph.

Parameters:

[ GitHub ]

  
# File 'lib/rubygems/vendor/molinillo/lib/molinillo/dependency_graph/tag.rb', line 21

def down(graph)
end

#up(graph) ⇒ Void

Performs the action on the given graph.

Parameters:

[ GitHub ]

  
# File 'lib/rubygems/vendor/molinillo/lib/molinillo/dependency_graph/tag.rb', line 17

def up(graph)
end