[前][次][番号順一覧][スレッド一覧]

ruby-changes:29048

From: nobu <ko1@a...>
Date: Thu, 6 Jun 2013 11:27:44 +0900 (JST)
Subject: [ruby-changes:29048] nobu:r41100 (trunk): vm_method.c: top_private rdoc

nobu	2013-06-06 11:27:23 +0900 (Thu, 06 Jun 2013)

  New Revision: 41100

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=41100

  Log:
    vm_method.c: top_private rdoc
    
    * vm_method.c (top_private): copy rdoc from top_public.

  Modified files:
    trunk/vm_method.c

Index: vm_method.c
===================================================================
--- vm_method.c	(revision 41099)
+++ vm_method.c	(revision 41100)
@@ -1428,6 +1428,18 @@ top_public(int argc, VALUE *argv) https://github.com/ruby/ruby/blob/trunk/vm_method.c#L1428
     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)
 {

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]