class Rosegold::Config
- Rosegold::Config
- Reference
- Object
Overview
Manages configuration files in the XDG Base Directory Specification directories.
For each application, a subdirectory is created in the config directory that stores configuration files specific to the application.
On Linux and other Unix-like systems, the XDG Base Directory Specification is used to determine the location of the configuration directory. On Windows, the %LOCALAPPDATA% environment variable is used instead.
Defined in:
rosegold/config.crClass Method Summary
- .dir
-
.directory_for(service : String)
Returns the directory where configuration files related to the given service will be stored.
- .instance
Instance Method Summary
-
#dir
Returns the configuration directory.
Class Method Detail
def self.directory_for(service : String)
#
Returns the directory where configuration files related to the given service will be stored. The directory will be created if it doesn't exist.