Class: Runcom::Cache

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/runcom/cache.rb

Overview

A developer friendly wrapper of XDG cache.

Constant Summary collapse

DEFAULT_CONTEXT =
Context.new xdg: XDG::Cache

Instance Method Summary collapse

Constructor Details

#initialize(path, context: DEFAULT_CONTEXT) ⇒ Cache

Returns a new instance of Cache.



14
15
16
# File 'lib/runcom/cache.rb', line 14

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