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

ruby-changes:13279

From: marcandre <ko1@a...>
Date: Wed, 23 Sep 2009 03:53:37 +0900 (JST)
Subject: [ruby-changes:13279] Ruby:r25041 (trunk): * eval.c (rb_mod_define_method): Doc fix (accepts UnboundMethod too)

marcandre	2009-09-23 03:53:25 +0900 (Wed, 23 Sep 2009)

  New Revision: 25041

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

  Log:
    * eval.c (rb_mod_define_method): Doc fix (accepts UnboundMethod too)

  Modified files:
    trunk/proc.c

Index: proc.c
===================================================================
--- proc.c	(revision 25040)
+++ proc.c	(revision 25041)
@@ -1191,7 +1191,7 @@
  *     define_method(symbol) { block }   => proc
  *
  *  Defines an instance method in the receiver. The _method_
- *  parameter can be a +Proc+ or +Method+ object.
+ *  parameter can be a +Proc+, a +Method+ or an +UnboundMethod+ object.
  *  If a block is specified, it is used as the method body. This block
  *  is evaluated using <code>instance_eval</code>, a point that is
  *  tricky to demonstrate because <code>define_method</code> is private.

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

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