[ruby-core:86239] [Ruby trunk Feature#14559] ENV.slice

From: benoit@...
Date: 2018-03-21 13:23:39 UTC
List: ruby-core #86239
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:[email protected]?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

In This Thread

Prev Next