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

ruby-changes:16394

From: marcandre <ko1@a...>
Date: Tue, 22 Jun 2010 13:52:16 +0900 (JST)
Subject: [ruby-changes:16394] Ruby:r28379 (trunk): * class.c: rdoc fix

marcandre	2010-06-22 13:52:03 +0900 (Tue, 22 Jun 2010)

  New Revision: 28379

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

  Log:
    * class.c: rdoc fix [ruby-core:30449]

  Modified files:
    trunk/class.c

Index: class.c
===================================================================
--- class.c	(revision 28378)
+++ class.c	(revision 28379)
@@ -866,8 +866,8 @@
  *  call-seq:
  *     mod.instance_methods(include_super=true)   -> array
  *
- *  Returns an array containing the names of instance methods that is callable
- *  from outside in the receiver. For a module, these are the public methods;
+ *  Returns an array containing the names of the public and protected instance
+ *  methods in the receiver. For a module, these are the public and protected methods;
  *  for a class, they are the instance (not singleton) methods. With no
  *  argument, or with an argument that is <code>false</code>, the
  *  instance methods in <i>mod</i> are returned, otherwise the methods
@@ -952,7 +952,7 @@
  *  call-seq:
  *     obj.methods    -> array
  *
- *  Returns a list of the names of methods publicly accessible in
+ *  Returns a list of the names of public and protected methods of
  *  <i>obj</i>. This will include all the methods accessible in
  *  <i>obj</i>'s ancestors.
  *
@@ -1041,6 +1041,7 @@
  *  Returns an array of the names of singleton methods for <i>obj</i>.
  *  If the optional <i>all</i> parameter is true, the list will include
  *  methods in modules included in <i>obj</i>.
+ *  Only public and protected singleton methods are returned.
  *
  *     module Other
  *       def three() end

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

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