module RestGW2
Constants
- CONFIG
- Client
- ItemDetailStruct
- Server
- VERSION
Public Class Methods
extract_env(path)
click to toggle source
# File lib/rest-gw2/server.rb, line 11 def self.extract_env path return {} unless File.exist?(path) Hash[File.read(path).strip.squeeze("\n").each_line.map do |line| name, value = line.split('=') [name, value.chomp] if !line.start_with?('#') && name && value end.compact] end