Method: RuboCop::ResultCache#load

Defined in:
lib/rubocop/result_cache.rb

#loadObject

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.



120
121
122
123
# File 'lib/rubocop/result_cache.rb', line 120

def load
  puts "Loading cache from #{@path}" if debug?
  @cached_data.from_json(File.read(@path, encoding: Encoding::UTF_8))
end