module SXDG
SXDG
is an extremely tiny, simple library allowing for easy conformance with the XDG Base Directory Specification.
Constants
- VERSION
The semantic version of {SXDG}.
- XDG_CACHE_HOME
@!macro xdg
- XDG_CONFIG_HOME
@!macro xdg
- XDG_DATA_HOME
@!macro xdg
- XDG_RUNTIME_DIR
@!macro xdg
Private Class Methods
set(env, *dirs)
click to toggle source
@private
# File lib/sxdg.rb, line 11 def self.set(env, *dirs) value = (ENV[env] ? ENV[env].split(':') : dirs).map! do |path| File.expand_path(path) end const_set(env, value) end