Sha256: b2b75cbac6ec411c88cb263f90d922602efee2269158ee170b54701b827a2618
Contents?: true
Size: 594 Bytes
Versions: 24
Compression:
Stored size: 594 Bytes
Contents
# frozen_string_literal: true require "forwardable" module XDG class Data extend Forwardable HOME_PAIR = Pair["XDG_DATA_HOME", ".local/share"].freeze DIRS_PAIR = Pair["XDG_DATA_DIRS", "/usr/local/share:/usr/share"].freeze delegate %i[home directories all inspect] => :combined def initialize home: Paths::Home, directories: Paths::Directory, environment: ENV @combined = Paths::Combined.new home.new(HOME_PAIR, environment), directories.new(DIRS_PAIR, environment) end private attr_reader :combined end end
Version data entries
24 entries across 24 versions & 1 rubygems