Sha256: 6599715be36fa5a2ac1ae37e0918cb7f72dfcdadbf2125b011bf9fd5b4d73ce3
Contents?: true
Size: 336 Bytes
Versions: 5
Compression:
Stored size: 336 Bytes
Contents
# frozen_string_literal: true require 'yaml' require 'active_support/core_ext/hash' # frozen_string_literal: true 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
5 entries across 5 versions & 1 rubygems