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

ruby-changes:3136

From: ko1@a...
Date: 25 Dec 2007 03:36:40 +0900
Subject: [ruby-changes:3136] akr - Ruby:r14628 (trunk): update Proc#lambda? doc.

akr	2007-12-25 03:36:30 +0900 (Tue, 25 Dec 2007)

  New Revision: 14628

  Modified files:
    trunk/proc.c

  Log:
    update Proc#lambda? doc.


  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/proc.c?r1=14628&r2=14627

Index: proc.c
===================================================================
--- proc.c	(revision 14627)
+++ proc.c	(revision 14628)
@@ -133,6 +133,11 @@
  *   n(&method(:m))             => true
  *   n(&method(:m)).to_proc     => true
  *
+ *   class C
+ *     define_method(:d) {}
+ *   end
+ *   C.new.method(:d).to_proc.lambda?   => true
+ *
  */
 
 static VALUE

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

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