mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
9 lines
170 B
Ruby
9 lines
170 B
Ruby
|
module UpdateEnv
|
||
|
def update_env(environ)
|
||
|
environ.each do |key, val|
|
||
|
@environ[key] = ENV[key] unless @environ.key?(key)
|
||
|
ENV[key] = val
|
||
|
end
|
||
|
end
|
||
|
end
|