Sha256: 94ab2ec7abecb743c3c447e3d54494306d256a29cb44bef871d79e0d24606bfb
Contents?: true
Size: 802 Bytes
Versions: 4
Compression:
Stored size: 802 Bytes
Contents
# frozen_string_literal: true module XDG # A convenience wrapper to all XDG functionality. class Environment def initialize home: Paths::Home, directories: Paths::Directory, environment: ENV @cache = Cache.new(home:, directories:, environment:) @config = Config.new(home:, directories:, environment:) @data = Data.new(home:, directories:, environment:) @state = State.new home:, directories:, environment: end def cache_home = cache.home def config_home = config.home def config_dirs = config.directories def data_home = data.home def data_dirs = data.directories def state_home = state.home def inspect = [cache, config, data, state].map(&:inspect).join " " private attr_reader :cache, :config, :data, :state end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
xdg-7.1.3 | lib/xdg/environment.rb |
xdg-7.1.2 | lib/xdg/environment.rb |
xdg-7.1.1 | lib/xdg/environment.rb |
xdg-7.1.0 | lib/xdg/environment.rb |