Sha256: 0ed6efd3fce2b05d12a4632171a356651323c18310746c0de09aca6d63fcef88
Contents?: true
Size: 810 Bytes
Versions: 2
Compression:
Stored size: 810 Bytes
Contents
# frozen_string_literal: true module XDG class Environment def initialize home: Paths::Standard, directories: Paths::Directory, environment: ENV @cache = Cache.new home: home, directories: directories, environment: environment @config = Config.new home: home, directories: directories, environment: environment @data = Data.new home: home, directories: directories, environment: environment end def cache_home cache.home end def config_home config.home end def config_dirs config.directories end def data_home data.home end def data_dirs data.directories end def inspect "#{cache.inspect} #{config.inspect} #{data.inspect}" end private attr_reader :cache, :config, :data end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
xdg-3.1.1 | lib/xdg/environment.rb |
xdg-3.1.0 | lib/xdg/environment.rb |