class XDG::Cache

Provides cache support.

Constants

HOME_PAIR

Public Class Methods

new(home: Paths::Home, directories: Paths::Directory, environment: ENV) click to toggle source
# File lib/xdg/cache.rb, line 15
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

Public Instance Methods

inspect(= " click to toggle source
# File lib/xdg/cache.rb, line 20
  def inspect = "#<#{self.class}:#{object_id} #{self}>"

  private

  attr_reader :combined
end