Sha256: c1cb59aa65111ebec58a6fafcfb904cc9e994cdb83660e4b4fc89bca0143ad3e

Contents?: true

Size: 335 Bytes

Versions: 2

Compression:

Stored size: 335 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

2 entries across 2 versions & 1 rubygems

Version Path
checkoff-0.1.4 lib/checkoff/config_loader.rb
checkoff-0.1.3 lib/checkoff/config_loader.rb