Module: Pry::Env Private

Defined in:
lib/pry/env.rb

Overview

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Env is a helper module to work with environment variables.

Since:

  • ?.?.?

Class Method Summary collapse

Class Method Details

.[](key) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Since:

  • ?.?.?


9
10
11
12
13
14
15
16
# File 'lib/pry/env.rb', line 9

def self.[](key)
  return unless ENV.key?(key)

  value = ENV[key]
  return if value == ''

  value
end