mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* NEWS: add note for Module#refine, Module#refinements,
Module#using, and Kernel#using. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37401 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
5f0b7f8c6f
commit
ba1bd089c8
2 changed files with 13 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
Thu Nov 1 16:44:36 2012 Shugo Maeda <shugo@ruby-lang.org>
|
||||
|
||||
* NEWS: add note for Module#refine, Module#refinements,
|
||||
Module#using, and Kernel#using.
|
||||
|
||||
Thu Nov 1 14:41:47 2012 Shugo Maeda <shugo@ruby-lang.org>
|
||||
|
||||
* eval.c (rb_using_module): using should be used indirectly.
|
||||
|
|
8
NEWS
8
NEWS
|
@ -39,6 +39,8 @@ with all sufficient information, see the ChangeLog file.
|
|||
* Kernel
|
||||
* added method:
|
||||
* added Kernel#Hash conversion method like Array() or Float().
|
||||
* added Kernel#using, which imports refinements into the current scope.
|
||||
[experimental]
|
||||
* extended method:
|
||||
* Kernel#warn accepts multiple args in like puts.
|
||||
* Kernel#caller accepts second optional argument `n' which specify
|
||||
|
@ -64,6 +66,12 @@ with all sufficient information, see the ChangeLog file.
|
|||
* added Module#prepend which is similar to Module#include,
|
||||
however a method in the prepended module overrides the
|
||||
corresponding method in the prepending module.
|
||||
* added Module#refine, which extends a class or module locally.
|
||||
[experimental]
|
||||
* added Module#refinements, which returns refinements defined in the
|
||||
receiver. [experimental]
|
||||
* added Module#using, which imports refinements into the receiver.
|
||||
[experimental]
|
||||
* extended method:
|
||||
* Module#define_method accepts a UnboundMethod from a Module.
|
||||
* Module#const_get accepts a qualified constant string, e.g.
|
||||
|
|
Loading…
Reference in a new issue