From: shevegen@...
Date: 2018-02-28T12:33:28+00:00
Subject: [ruby-core:85865] [Ruby trunk Feature#14559] ENV.slice

Issue #14559 has been updated by shevegen (Robert A. Heiler).


Seems sensible.

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

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