Module: Bootsnap::CompileCache
- Defined in:
- lib/bootsnap/compile_cache.rb,
lib/bootsnap/compile_cache/iseq.rb,
lib/bootsnap/compile_cache/yaml.rb,
ext/bootsnap/bootsnap.c
Defined Under Namespace
Modules: ISeq, Native, YAML Classes: Uncompilable
Class Method Summary collapse
Class Method Details
.setup(cache_dir:, iseq:, yaml:) ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 |
# File 'lib/bootsnap/compile_cache.rb', line 3 def self.setup(cache_dir:, iseq:, yaml:) if iseq require_relative 'compile_cache/iseq' Bootsnap::CompileCache::ISeq.install!(cache_dir) end if yaml require_relative 'compile_cache/yaml' Bootsnap::CompileCache::YAML.install!(cache_dir) end end |