Project

General

Profile

Actions

Feature #14559

closed

ENV.slice

Added by sawa (Tsuyoshi Sawada) almost 7 years ago. Updated over 6 years ago.

Status:
Closed
Target version:
-
[ruby-core:85858]

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

env_slice.patch (2.23 KB) env_slice.patch Benoit_Tigeot (Benoit Tigeot), 03/29/2018 04:01 PM
Actions #2

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)
Actions #5

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.

Actions #8

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

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0