1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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
This commit is contained in:
nobu 2012-06-25 08:06:43 +00:00
parent e6f1e3f49d
commit 7c3d0ce3cc

4
NEWS
View file

@ -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 {}