Environment Variables
Sample to get user profile path
Section titled “Sample to get user profile path”# will retrieve my home pathENV['HOME'] # => "/Users/username"
# will try retrieve the 'FOO' environment variable. If failed, will get 'bar'ENV.fetch('FOO', 'bar')Syntax
Section titled “Syntax”- ENV[variable_name]
- ENV.fetch(variable_name, default_value)
Remarks
Section titled “Remarks”Let get user profile path in a dynamic way for scripting under windows