Project

General

Profile

Actions

Feature #14559

closed

ENV.slice

Added by sawa (Tsuyoshi Sawada) over 6 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

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0