summaryrefslogtreecommitdiff
path: root/vm_method.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-06-06 02:27:23 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-06-06 02:27:23 +0000
commit37fe2987c4db53710ee49fe22970f3e0e53e12b8 (patch)
treedef306545fdb6b329d5dd7b4855b9dbd7e23a04f /vm_method.c
parentfebc42d05c6b8a401fff2361bf03fe338eb4d1b0 (diff)
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
Diffstat (limited to 'vm_method.c')
-rw-r--r--vm_method.c12
1 files changed, 12 insertions, 0 deletions
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)
{