Issue #10342 has been updated by Nobuyoshi Nakada.

Status changed from Open to Closed

----------------------------------------
Feature #10342: Module#deprecate_constant
https://bugs.ruby-lang.org/issues/10342#change-58383

* Author: Nobuyoshi Nakada
* Status: Closed
* Priority: Normal
* Assignee: Yukihiro Matsumoto
----------------------------------------
Proposal for `Module#deprecate_constant`, which marks constants referred by arguments as deprecated.

~~~ruby
class C
  FOO = 1
  deprecate_constant :FOO
end
C::FOO #=> warning: constant C::FOO is deprecated
~~~

https://github.com/nobu/ruby/compare/Module%23deprecate_constant



-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>