From d5f4a2ba12e910e6fb78ccd68df2bc33f7cff6c4 Mon Sep 17 00:00:00 2001 From: sho-h <sho-h@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> Date: Mon, 4 Jan 2016 07:08:05 +0000 Subject: [PATCH] variable.c (rb_mod_deprecate_constant): [DOC] added documentation for Module#deprecate_constant. [ci skip] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53429 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ variable.c | 7 +++++++ 2 files changed, 12 insertions(+) diff --git a/ChangeLog b/ChangeLog index 5f797204b0..56af5bf414 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Mon Jan 4 15:44:37 2016 Sho Hashimoto <sho-h@ruby-lang.org> + + * variable.c (rb_mod_deprecate_constant): [DOC] added + documentation for Module#deprecate_constant. [ci skip] + Mon Jan 4 15:36:38 2016 Sho Hashimoto <sho-h@ruby-lang.org> * thread_sync.c: [DOC] remove SizedQueue#close argument. diff --git a/variable.c b/variable.c index b0334618bf..047dbc7e67 100644 --- a/variable.c +++ b/variable.c @@ -2719,6 +2719,13 @@ rb_mod_public_constant(int argc, const VALUE *argv, VALUE obj) return obj; } +/* + * call-seq: + * mod.deprecate_constant(symbol, ...) => mod + * + * Makes a list of existing constants deprecated. + */ + VALUE rb_mod_deprecate_constant(int argc, const VALUE *argv, VALUE obj) {