From: nobu@... Date: 2014-10-08T15:55:03+00:00 Subject: [ruby-core:65522] [ruby-trunk - Feature #10342] Module#deprecate_constant Issue #10342 has been updated by Nobuyoshi Nakada. Related to misc #10339: normalize reference to Timeout::Error added ---------------------------------------- Feature #10342: Module#deprecate_constant https://bugs.ruby-lang.org/issues/10342#change-49295 * 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/