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:
parent
e6f1e3f49d
commit
7c3d0ce3cc
1 changed files with 4 additions and 0 deletions
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…
Add table
Reference in a new issue