Sha256: e14981e368004d1ab3b7bc8d00bd62e1ecd832b4b2889a4fa724d2eb12a58141
Contents?: true
Size: 401 Bytes
Versions: 5
Compression:
Stored size: 401 Bytes
Contents
require 'yaml' module ModuleSync module Util def self.symbolize_keys(hash) hash.inject({}) { |memo, (k, v)| memo[k.to_sym] = v; memo } end def self.parse_config(config_file) if File.exist?(config_file) YAML.load_file(config_file) || {} else puts "No config file under #{config_file} found, using default values" {} end end end end
Version data entries
5 entries across 5 versions & 1 rubygems