class DEBUGGER__::Config
def self.config_to_env_hash config
def self.config_to_env_hash config CONFIG_MAP.each_with_object({}){|(key, evname), env| unless config[key].nil? case CONFIG_SET[key][2] when :path valstr = config[key].map{|e| e.kind_of?(Regexp) ? e.inspect : e}.join(':') when :path_map valstr = config[key].map{|e| e.join(':')}.join(',') else valstr = config[key].to_s end env[evname] = valstr end } end