Module: Bootsnap::CompileCache::ISeq::Compiler::PatchRubyBug22023

Included in:
Bootsnap::CompileCache::ISeq::Compiler
Defined in:
lib/bootsnap/compile_cache/iseq.rb

Instance Method Summary collapse

Instance Method Details

#compile_file(path, options = nil) ⇒ Object



62
63
64
# File 'lib/bootsnap/compile_cache/iseq.rb', line 62

def compile_file(path, options = nil)
  compile_file_prism(path, options)
end

#compile_file_prism(path, options = nil) ⇒ Object



72
73
74
# File 'lib/bootsnap/compile_cache/iseq.rb', line 72

def compile_file_prism(path, options = nil)
  compile_prism(::File.read(path, encoding: Encoding::UTF_8), path, path, nil, options)
end