Sha256: dc7907b3fd43d815e9938495aa85c0aa8ee8d7d40048bbd6e61a6d81b47f9ad7
Contents?: true
Size: 306 Bytes
Versions: 4
Compression:
Stored size: 306 Bytes
Contents
# frozen_string_literal: true require 'yaml' require 'active_support/core_ext/hash' module Checkoff # Load configuration file class ConfigLoader def self.load(sym) file = "#{sym}.yml" YAML.load_file(File.expand_path("~/.#{file}")) .with_indifferent_access end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
checkoff-0.6.0 | lib/checkoff/config_loader.rb |
checkoff-0.5.5 | lib/checkoff/config_loader.rb |
checkoff-0.5.4 | lib/checkoff/config_loader.rb |
checkoff-0.5.3 | lib/checkoff/config_loader.rb |