diff options
author | sho-h <sho-h@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-01-04 07:08:05 +0000 |
---|---|---|
committer | sho-h <sho-h@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-01-04 07:08:05 +0000 |
commit | bfff498a9b3874ad02336d39737f390276b08c18 (patch) | |
tree | 44bbaa328f3a4918c8ffb4c06ec9fb1881edc34d | |
parent | 5edfeaa0f2f3f4f2f6498aef0db89a97db272098 (diff) | |
download | ruby-bfff498a9b3874ad02336d39737f390276b08c18.tar.gz |
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
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | variable.c | 7 |
2 files changed, 12 insertions, 0 deletions
@@ -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) { |