Your IP : 18.224.45.82


Current Path : /opt/alt/ruby27/share/rubygems/rubygems/resolver/molinillo/lib/molinillo/dependency_graph/
Upload File :
Current File : //opt/alt/ruby27/share/rubygems/rubygems/resolver/molinillo/lib/molinillo/dependency_graph/tag.rb

# 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.action_name)
      def self.action_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

?>