From 37fe2987c4db53710ee49fe22970f3e0e53e12b8 Mon Sep 17 00:00:00 2001 From: nobu Date: Thu, 6 Jun 2013 02:27:23 +0000 Subject: vm_method.c: top_private rdoc * vm_method.c (top_private): copy rdoc from top_public. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41100 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- vm_method.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/vm_method.c b/vm_method.c index be2224fa63..129507cedd 100644 --- a/vm_method.c +++ b/vm_method.c @@ -1428,6 +1428,18 @@ top_public(int argc, VALUE *argv) return rb_mod_public(argc, argv, rb_cObject); } +/* + * call-seq: + * private + * private(symbol, ...) + * private(string, ...) + * + * With no arguments, sets the default visibility for subsequently + * defined methods to private. With arguments, sets the named methods to + * have private visibility. + * + * String arguments are converted to symbols. + */ static VALUE top_private(int argc, VALUE *argv) { -- cgit v1.2.3