From 7c3d0ce3ccd5b3c1489dac2823f38d78f439456d Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 25 Jun 2012 08:06:43 +0000 Subject: method transplanting * proc.c (rb_mod_define_method): allow method transplanting from a module to either class or module. [ruby-core:34267][Feature #4254] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36215 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- NEWS | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'NEWS') diff --git a/NEWS b/NEWS index f51398e948..c1f4293543 100644 --- a/NEWS +++ b/NEWS @@ -49,6 +49,10 @@ with all sufficient information, see the ChangeLog file. * 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 {} -- cgit v1.2.3