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


I've re-submitted the patch with correct test order. Thanks, Matz, Mame and Matz for your help during last ruby hack challenge.

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

* Author: sawa (Tsuyoshi Sawada)
* Status: Assigned
* Priority: Normal
* Assignee: matz (Yukihiro Matsumoto)
* 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"}
```

---Files--------------------------------
env_slice.patch (2.23 KB)


-- 
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>