Module: Jets::CLI::Env::Parse
- Included in:
- Dotenv::Set, Set
- Defined in:
- lib/jets/cli/env/parse.rb
Instance Method Summary collapse
Instance Method Details
#parse_cli_env_values(pairs) ⇒ Object
3 4 5 6 7 8 9 |
# File 'lib/jets/cli/env/parse.rb', line 3 def parse_cli_env_values(pairs) # Use each_with_object to iterate over the pairs and insert them into a hash pairs.each_with_object({}) do |pair, hash| key, value = pair.split("=") hash[key] = value end end |