module GemHadar::Utils
def xdg_config(name, default)
-
(String)
- the content of the configuration file or the default value
Parameters:
-
default
(Object
) -- the default value to return if the configuration file is not found -
name
(String
) -- the name of the configuration file to retrieve
def xdg_config(name, default) if File.exist?(xdg_config_filename(name)) File.read(xdg_config_filename(name)) else default end end