Class: PDK::Util::Env
- Inherits:
-
Object
- Object
- PDK::Util::Env
- Extended by:
- Forwardable
- Defined in:
- lib/pdk/util/env.rb
Class Method Summary collapse
Class Method Details
.[]=(key, value) ⇒ Object
12 13 14 15 16 17 18 |
# File 'lib/pdk/util/env.rb', line 12 def []=(key, value) if Gem.win_platform? PDK::Util::Windows::Process.set_environment_variable(key, value) else ENV[key] = value end end |
.env_hash ⇒ Object
20 21 22 23 24 25 26 |
# File 'lib/pdk/util/env.rb', line 20 def env_hash if Gem.win_platform? PDK::Util::Windows::Process.environment_hash else ENV end end |