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
This commit is contained in:
parent
febc42d05c
commit
37fe2987c4
12
vm_method.c
12
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)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user