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

ruby-changes:13281

From: marcandre <ko1@a...>
Date: Wed, 23 Sep 2009 03:56:40 +0900 (JST)
Subject: [ruby-changes:13281] Ruby:r25043 (ruby_1_8): * eval.c (rb_mod_define_method): Doc fix (accepts UnboundMethod too)

marcandre	2009-09-23 03:56:29 +0900 (Wed, 23 Sep 2009)

  New Revision: 25043

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

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

  Modified files:
    branches/ruby_1_8/eval.c

Index: ruby_1_8/eval.c
===================================================================
--- ruby_1_8/eval.c	(revision 25042)
+++ ruby_1_8/eval.c	(revision 25043)
@@ -10048,7 +10048,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/

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