An Environment variable is a key/value pair, it looks like this: KEY=VALUE We use these variables to share configuration between programs. Examples: Setting your default editor Telling Ruby where to find gems Passing API keys into your application, without having to commit them to source control (git) Defining where your operating system should look for […]
The post How Do You Use Environment Variables in Ruby? appeared first on RubyGuides. Don't miss your free gift here :)