Issue #14559 has been updated by Benoit_Tigeot (Benoit Tigeot).


Thanks for the idea. I submitted a pull request on github here https://github.com/ruby/ruby/pull/1844 (patch link https://patch-diff.githubusercontent.com/raw/ruby/ruby/pull/1844.patch).

----------------------------------------
Feature #14559: ENV.slice
https://bugs.ruby-lang.org/issues/14559#change-71140

* Author: sawa (Tsuyoshi Sawada)
* Status: Open
* Priority: Normal
* Assignee: 
* Target version: 
----------------------------------------
I would like to request `ENV.slice`, which should behave analogous to `Hash#slice`.

```ruby
ENV.slice("PATH", "FOO")
# => {"PATH" => "/foo:/bar", "FOO" => "foo"}
```



-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>