diff options
-rw-r--r-- | vm_method.c | 12 |
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) { |