summaryrefslogtreecommitdiff
path: root/lib/rubygems/deprecate.rb
diff options
context:
space:
mode:
authorHiroshi SHIBATA <[email protected]>2023-03-16 13:08:50 +0900
committerHiroshi SHIBATA <[email protected]>2023-03-17 18:50:55 +0900
commit0b632b9cddef76514635ad460d40b3a8d346602f ()
tree33a2b39d30bb0c3de6600de132c7f6a4cda4e775 /lib/rubygems/deprecate.rb
parent567db6064baf572e3510c0322ec536ad84c81d57 (diff)
[rubygems/rubygems] util/rubocop -A --only Style/ClassCheck
https://.com/rubygems/rubygems/commit/1c3356a872
-rw-r--r--lib/rubygems/deprecate.rb4
1 files changed, 2 insertions, 2 deletions
@@ -103,7 +103,7 @@ module Gem::Deprecate
old = "_deprecated_#{name}"
alias_method old, name
define_method name do |*args, &block|
- klass = self.kind_of? Module
target = klass ? "#{self}." : "#{self.class}#"
msg = [ "NOTE: #{target}#{name} is deprecated",
repl == :none ? " with no replacement" : "; use #{repl} instead",
@@ -128,7 +128,7 @@ module Gem::Deprecate
old = "_deprecated_#{name}"
alias_method old, name
define_method name do |*args, &block|
- klass = self.kind_of? Module
target = klass ? "#{self}." : "#{self.class}#"
msg = [ "NOTE: #{target}#{name} is deprecated",
replacement == :none ? " with no replacement" : "; use #{replacement} instead",