Sha256: 1ed496a0f2a835d7a7bf40f20b8ac0937246a3fe889aed80dc90cb8f01697b3d

Contents?: true

Size: 441 Bytes

Versions: 3

Compression:

Stored size: 441 Bytes

Contents

# frozen_string_literal: true

require "forwardable"

module Runcom
  # A developer friendly wrapper of XDG cache.
  class Cache
    extend Forwardable

    CONTEXT = Context.new xdg: XDG::Cache

    delegate %i[relative namespace file_name active passive global local all inspect] => :common

    def initialize path, context: CONTEXT
      @common = Paths::Common.new path, context:
    end

    private

    attr_reader :common
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
runcom-10.2.1 lib/runcom/cache.rb
runcom-10.2.0 lib/runcom/cache.rb
runcom-10.1.0 lib/runcom/cache.rb