Feature #14559
ENV.slice
Description
I would like to request ENV.slice
, which should behave analogous to Hash#slice
.
ENV.slice("PATH", "FOO")
# => {"PATH" => "/foo:/bar", "FOO" => "foo"}
Files
Associated revisions
History
Updated by hsbt (Hiroshi SHIBATA) over 1 year ago
- Assignee set to matz (Yukihiro Matsumoto)
- Status changed from Open to Assigned
Updated by Benoit_Tigeot (Benoit Tigeot) over 1 year ago
- File env_slice.patch env_slice.patch added
Updated by Benoit_Tigeot (Benoit Tigeot) over 1 year ago
I've re-submitted the patch with correct test order (https://github.com/ruby/ruby/pull/1844). Thanks, Matz, Mame and Matz for your help during last ruby hack challenge.
Updated by nobu (Nobuyoshi Nakada) over 1 year ago
- Status changed from Assigned to Closed
Applied in changeset trunk|r63188.
Add slice method to ENV like Hash#slice
[Feature #14559]
From: Benoit Tigeot benoit@hopsandfork.com
Add slice method to ENV like Hash#slice
[Feature #14559]
From: Benoit Tigeot benoit@hopsandfork.com
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63188 b2dd03c8-39d4-4d8f-98ff-823fe69b080e