From: nobu@... Date: 2014-10-10T23:55:52+00:00 Subject: [ruby-core:65603] [ruby-trunk - Feature #10342] Module#deprecate_constant Issue #10342 has been updated by Nobuyoshi Nakada. Yes, `autoload` can do the trick, but it needs a separated file and warns only once. ---------------------------------------- Feature #10342: Module#deprecate_constant https://bugs.ruby-lang.org/issues/10342#change-49344 * 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/