Method deprecated or moved
This method is deprecated or moved on the latest stable version.
The last existing version (v1_9_3_392) is shown here.
expand_environ(str)
public
Replace %w+% into the environment value of what is contained between the
%‘s This method is used for REG_EXPAND_SZ.
For detail, see expandEnvironmentStrings
Win32 API.
# File ext/dl/win32/lib/win32/registry.rb, line 332
def self.expand_environ(str)
str.gsub(/%([^%]+)%/) { ENV[$1] || ENV[$1.upcase] || $& }
end