Sha256: f3ab6b92094b14bfbbb0e46a815bee3b564d8219dbded4937916546ef29eee60
Contents?: true
Size: 498 Bytes
Versions: 1
Compression:
Stored size: 498 Bytes
Contents
# frozen_string_literal: true require 'yaml' module Micro module Menu module Configurations CONFIGURATION_PATHS = [ File.expand_path("#{Dir.home}/.umenurc.yml", __dir__), File.expand_path("#{Dir.home}/.umenu/umenurc.yml", __dir__), ] def self.load path = CONFIGURATION_PATHS.first { |file_path| File.exist? file_path } @@config = YAML.load_file(path, symbolize_names: true) @@config.update(_path: path) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
u-menu-0.6.0 | lib/micro/menu/configurations.rb |