diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-06-25 08:06:43 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-06-25 08:06:43 +0000 |
commit | 7c3d0ce3ccd5b3c1489dac2823f38d78f439456d (patch) | |
tree | 1bfd1157021a735da8a216c3331ee7ea030d6d65 /NEWS | |
parent | e6f1e3f49db1694116d286666ccaa026cad61f3e (diff) | |
download | ruby-7c3d0ce3ccd5b3c1489dac2823f38d78f439456d.tar.gz |
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
Diffstat (limited to 'NEWS')
-rw-r--r-- | NEWS | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 {} |