Sha256: 12fc62e072054ba9a881bcbc9000d7083662729f07f5c47ad4c687efd1bd6ea7
Contents?: true
Size: 636 Bytes
Versions: 1
Compression:
Stored size: 636 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 to_s to_str] => :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) freeze end def inspect = "#<#{self.class}:#{object_id} #{self}>" private attr_reader :combined end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
xdg-9.0.0 | lib/xdg/cache.rb |