lib/rubygems/util/list.rb in rubygems-update-3.4.22 vs lib/rubygems/util/list.rb in rubygems-update-3.5.0

- old
+ new

@@ -1,9 +1,10 @@ # frozen_string_literal: true module Gem - class List + # The Gem::List class is currently unused and will be removed in the next major rubygems version + class List # :nodoc: include Enumerable attr_accessor :value, :tail def initialize(value = nil, tail = nil) @value = value @@ -33,6 +34,7 @@ def self.prepend(list, value) return List.new(value) unless list List.new value, list end end + deprecate_constant :List end