Module: Bootsnap::CompileCache::JSON::Patch
- Defined in:
- lib/bootsnap/compile_cache/json.rb
Instance Method Summary collapse
Instance Method Details
#load_file(path, *args) ⇒ Object
69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 |
# File 'lib/bootsnap/compile_cache/json.rb', line 69 def load_file(path, *args) return super if args.size > 1 if (kwargs = args.first) return super unless kwargs.is_a?(Hash) return super unless (kwargs.keys - ::Bootsnap::CompileCache::JSON.).empty? end ::Bootsnap::CompileCache::Native.fetch( Bootsnap::CompileCache::JSON.cache_dir, File.realpath(path), ::Bootsnap::CompileCache::JSON, kwargs, ) end |