This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
# 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
|
||||
Reference in New Issue
Block a user