Sha256: 4e0465454d74720c9d6ed0beb09248de728e2153a242ad2a8cd5cb17fbb45c71
Contents?: true
Size: 560 Bytes
Versions: 8
Compression:
Stored size: 560 Bytes
Contents
# frozen_string_literal: true require "forwardable" require "xdg/pair" module XDG # Provides cache support. class Cache extend Forwardable HOME_PAIR = Pair["XDG_CACHE_HOME", ".cache"].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(Pair.new, environment) end private attr_reader :combined end end
Version data entries
8 entries across 8 versions & 1 rubygems