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:
parent
e6f1e3f49d
commit
7c3d0ce3cc
4
NEWS
4
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 {}
|
||||
|
Loading…
x
Reference in New Issue
Block a user