Method: Ego::Filesystem.cache

Defined in:
lib/ego/filesystem.rb

.cache(path = '') ⇒ String

Returns the path to cache directory with path appended.

Parameters:

  • path (String) (defaults to: '')

    path to append

Returns:

  • (String)

    the path to cache directory with path appended

See Also:



26
27
28
# File 'lib/ego/filesystem.rb', line 26

def cache(path = '')
  File.join(XDG_CACHE_HOME, BASENAME, path)
end