Actions
Feature #14559
closedENV.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
Updated by shevegen (Robert A. Heiler) almost 7 years ago
Seems sensible.
Updated by Benoit_Tigeot (Benoit Tigeot) over 6 years ago
- File env_slice.patch added
Updated by hsbt (Hiroshi SHIBATA) over 6 years ago
- Status changed from Open to Assigned
- Assignee set to matz (Yukihiro Matsumoto)
Updated by Benoit_Tigeot (Benoit Tigeot) over 6 years ago
- File env_slice.patch env_slice.patch added
Updated by Benoit_Tigeot (Benoit Tigeot) over 6 years ago
- File deleted (
env_slice.patch)
Updated by Benoit_Tigeot (Benoit Tigeot) over 6 years 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 matz (Yukihiro Matsumoto) over 6 years ago
It seems OK to me.
Matz.
Updated by nobu (Nobuyoshi Nakada) over 6 years 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
Actions
Like0
Like0Like0Like0Like0Like0Like0Like0Like0