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

ruby-changes:24221

From: drbrain <ko1@a...>
Date: Tue, 3 Jul 2012 06:13:04 +0900 (JST)
Subject: [ruby-changes:24221] drbrain:r36272 (trunk): * object.c (Init_Object): Added RDoc location pointers for

drbrain	2012-07-03 06:12:48 +0900 (Tue, 03 Jul 2012)

  New Revision: 36272

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

  Log:
    * object.c (Init_Object):  Added RDoc location pointers for
      Kernel#methods, Kernel#protected_methods, Kernel#private_methods and
      Kernel#public_methods.  [Bug #6666]

  Modified files:
    trunk/ChangeLog
    trunk/object.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 36271)
+++ ChangeLog	(revision 36272)
@@ -1,3 +1,9 @@
+Tue Jul  3 06:12:13 2012  Eric Hodel  <drbrain@s...>
+
+	* object.c (Init_Object):  Added RDoc location pointers for
+	  Kernel#methods, Kernel#protected_methods, Kernel#private_methods and
+	  Kernel#public_methods.  [Bug #6666]
+
 Tue Jul  3 06:02:54 2012  Eric Hodel  <drbrain@s...>
 
 	* ext/zlib/zlib.c (zstream_run):  Process zlib streams without GVL.
Index: object.c
===================================================================
--- object.c	(revision 36271)
+++ object.c	(revision 36272)
@@ -2894,11 +2894,11 @@
 
     rb_define_method(rb_mKernel, "to_s", rb_any_to_s, 0);
     rb_define_method(rb_mKernel, "inspect", rb_obj_inspect, 0);
-    rb_define_method(rb_mKernel, "methods", rb_obj_methods, -1);
+    rb_define_method(rb_mKernel, "methods", rb_obj_methods, -1); /* in class.c */
     rb_define_method(rb_mKernel, "singleton_methods", rb_obj_singleton_methods, -1); /* in class.c */
-    rb_define_method(rb_mKernel, "protected_methods", rb_obj_protected_methods, -1);
-    rb_define_method(rb_mKernel, "private_methods", rb_obj_private_methods, -1);
-    rb_define_method(rb_mKernel, "public_methods", rb_obj_public_methods, -1);
+    rb_define_method(rb_mKernel, "protected_methods", rb_obj_protected_methods, -1); /* in class.c */
+    rb_define_method(rb_mKernel, "private_methods", rb_obj_private_methods, -1); /* in class.c */
+    rb_define_method(rb_mKernel, "public_methods", rb_obj_public_methods, -1); /* in class.c */
     rb_define_method(rb_mKernel, "instance_variables", rb_obj_instance_variables, 0); /* in variable.c */
     rb_define_method(rb_mKernel, "instance_variable_get", rb_obj_ivar_get, 1);
     rb_define_method(rb_mKernel, "instance_variable_set", rb_obj_ivar_set, 2);

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

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