From abe75149d14d3286d3051c9e961ab6473a243a19 Mon Sep 17 00:00:00 2001 From: nobu Date: Thu, 20 Sep 2018 15:06:56 +0000 Subject: Enumerable#to_h with block and so on [Feature #15143] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64794 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- NEWS | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'NEWS') diff --git a/NEWS b/NEWS index 052b7b9a0c..d1be38cfb9 100644 --- a/NEWS +++ b/NEWS @@ -44,6 +44,11 @@ sufficient information, see the ChangeLog file or Redmine * Added `Array#union` instance method. [Feature #14097] + * Modified methods: + + * `Array#to_h` now maps elements to new keys and values by the + block if given. [Feature #15143] + * Aliased methods: * `Array#filter` is a new alias for `Array#select`. @@ -74,6 +79,11 @@ sufficient information, see the ChangeLog file or Redmine * `Enumerable` + * Modified methods: + + * `Enumerable#to_h` now maps elements to new keys and values + by the block if given. [Feature #15143] + * Aliased methods: * `Enumerable#filter` is a new alias for `Enumerable#select`. @@ -86,6 +96,13 @@ sufficient information, see the ChangeLog file or Redmine * `Enumerator::Lazy#filter` is a new alias for `Enumerator::Lazy#select`. [Feature #13784] +* `ENV` + + * Modified methods: + + * `ENV.to_h` now maps names and values to new keys and values + by the block if given. [Feature #15143] + * `Exception` * New options: @@ -100,6 +117,9 @@ sufficient information, see the ChangeLog file or Redmine * `Hash#merge`, `update`, `merge!` and `update!` now accept multiple arguments. [Feature #15111] + * `Hash#to_h` now maps keys and values to new keys and values + by the block if given. [Feature #15143] + * Aliased methods: * `Hash#filter` is a new alias for `Hash#select`. [Feature #13784] @@ -207,6 +227,11 @@ sufficient information, see the ChangeLog file or Redmine * `Struct` + * Modified methods: + + * `Hash#to_h` now maps keys and values to new keys and values + by the block if given. [Feature #15143] + * Aliased method: * `Struct#filter` is a new alias for `Struct#select` [Feature #13784] -- cgit v1.2.3