summaryrefslogtreecommitdiff
path: root/lib/rubygems/deprecate.rb
diff options
context:
space:
mode:
authorHiroshi SHIBATA <[email protected]>2021-07-07 14:07:29 +0900
committerHiroshi SHIBATA <[email protected]>2021-07-07 15:31:52 +0900
commitc082c6eb7c786a432bea23cf78839f64585cb630 ()
treee3c608264fe03645e905fe7284d713cff87b87dd /lib/rubygems/deprecate.rb
parent6e2240a2f954c84ed12357382c9c065ae4b91e11 (diff)
Sync RubyGems and Bundler with upstream
Notes: Merged: https://.com/ruby/ruby/pull/4634
-rw-r--r--lib/rubygems/deprecate.rb59
1 files changed, 53 insertions, 6 deletions
@@ -1,23 +1,70 @@
# frozen_string_literal: true
##
-# Provides a single method +deprecate+ to be used to declare when
-# something is going away.
#
# class Legacy
-# def self.klass_method
# # ...
# end
#
-# def instance_method
# # ...
# end
#
# extend Gem::Deprecate
-# deprecate :instance_method, "X.z", 2011, 4
#
# class << self
# extend Gem::Deprecate
-# deprecate :klass_method, :none, 2011, 4
# end
# end