Sha256: 870a14cdf2f4b46206f1ff60f6d13da9ab96851f6798223f4b62e467ff4f7e35

Contents?: true

Size: 649 Bytes

Versions: 8

Compression:

Stored size: 649 Bytes

Contents

# frozen_string_literal: true

module XDG
  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:
    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 inspect = "#{cache.inspect} #{config.inspect} #{data.inspect}"

    private

    attr_reader :cache, :config, :data
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
xdg-6.5.0 lib/xdg/environment.rb
xdg-6.4.0 lib/xdg/environment.rb
xdg-6.3.3 lib/xdg/environment.rb
xdg-6.3.2 lib/xdg/environment.rb
xdg-6.3.1 lib/xdg/environment.rb
xdg-6.3.0 lib/xdg/environment.rb
xdg-6.2.0 lib/xdg/environment.rb
xdg-6.1.0 lib/xdg/environment.rb