Method: RuboCop::Server::Cache.dir

Defined in:
lib/rubocop/server/cache.rb

.dirObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

rubocop:enable Metrics/AbcSize



66
67
68
69
70
# File 'lib/rubocop/server/cache.rb', line 66

def dir
  Pathname.new(File.join(cache_path, project_dir_cache_key)).tap do |d|
    d.mkpath unless d.exist?
  end
end