Sha256: 1d5190d37124f039dcc1c25f91ac2c85ac9c7e73fcb09e100362cfecb945fcab

Contents?: true

Size: 718 Bytes

Versions: 3

Compression:

Stored size: 718 Bytes

Contents

# frozen_string_literal: true
require 'rubygems/resolver/molinillo/lib/molinillo/dependency_graph/action'
module Gem::Resolver::Molinillo
  class DependencyGraph
    # @!visibility private
    # @see DependencyGraph#tag
    class Tag < Action
      # @!group Action

      # (see Action.name)
      def self.name
        :tag
      end

      # (see Action#up)
      def up(_graph)
      end

      # (see Action#down)
      def down(_graph)
      end

      # @!group Tag

      # @return [Object] An opaque tag
      attr_reader :tag

      # Initialize an action to tag a state of a dependency graph
      # @param [Object] tag an opaque tag
      def initialize(tag)
        @tag = tag
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rubygems-update-2.6.7 lib/rubygems/resolver/molinillo/lib/molinillo/dependency_graph/tag.rb
rubygems-update-2.6.6 lib/rubygems/resolver/molinillo/lib/molinillo/dependency_graph/tag.rb
rubygems-update-2.6.5 lib/rubygems/resolver/molinillo/lib/molinillo/dependency_graph/tag.rb