From: nobu@... Date: 2014-10-08T15:54:28+00:00 Subject: [ruby-core:65521] [ruby-trunk - Feature #10342] [Open] Module#deprecate_constant Issue #10342 has been reported by Nobuyoshi Nakada. ---------------------------------------- Feature #10342: Module#deprecate_constant https://bugs.ruby-lang.org/issues/10342 * Author: Nobuyoshi Nakada * Status: Open * Priority: Normal * Assignee: Yukihiro Matsumoto * Category: core * Target version: current: 2.2.0 ---------------------------------------- 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/