From 6606597109bdb535a150606323ce3d8f5750e1f6 Mon Sep 17 00:00:00 2001 From: Shugo Maeda Date: Thu, 21 Oct 2021 16:21:08 +0900 Subject: Deprecate include/prepend in refinements and add Refinement#import_methods instead Refinement#import_methods imports methods from modules. Unlike Module#include, it copies methods and adds them into the refinement, so the refinement is activated in the imported methods. [Bug #17429] [ruby-core:101639] --- NEWS.md | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'NEWS.md') diff --git a/NEWS.md b/NEWS.md index 305231e542..6ccfd90971 100644 --- a/NEWS.md +++ b/NEWS.md @@ -171,6 +171,12 @@ Outstanding ones only. * Replace copy coroutine with pthread implementation. [[Feature #18015]] +* Refinement + + * New class which represents a module created by Module#refine. + `include` and `prepend` are deprecated, and `import_methods` is added + instead. [[Bug #17429]] + ## Stdlib updates * The following default gem are updated. -- cgit v1.2.3