ruby-changes:24164
From: nobu <ko1@a...>
Date: Mon, 25 Jun 2012 17:06:55 +0900 (JST)
Subject: [ruby-changes:24164] nobu:r36215 (trunk): method transplanting
nobu 2012-06-25 17:06:43 +0900 (Mon, 25 Jun 2012) New Revision: 36215 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=36215 Log: method transplanting * proc.c (rb_mod_define_method): allow method transplanting from a module to either class or module. [ruby-core:34267][Feature #4254] Modified files: trunk/NEWS Index: NEWS =================================================================== --- NEWS (revision 36214) +++ NEWS (revision 36215) @@ -49,6 +49,10 @@ * added LoadError#path method to return the file name that could not be loaded. + * Module + * extended method: + * Module#define_method accepts a UnboundMethod from a Module. + * NilClass * added method: * added nil.to_h which returns {} -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/