lib/pry/env.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

class Pry
  # Env is a helper module to work with environment variables.
  #
  # @since v0.13.0
  # @api private
  module Env
    def self.[](key)
      return unless ENV.key?(key)

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

      value
    end
  end
end