module Bootsnap::CompileCache::ISeq::Compiler::PatchRubyBug22023

Public Instance Methods

compile_file(path, options = nil) click to toggle source
# File lib/bootsnap/compile_cache/iseq.rb, line 64
def compile_file(path, options = nil)
  compile_file_prism(path, options)
end
compile_file_prism(path, options = nil) click to toggle source
# File lib/bootsnap/compile_cache/iseq.rb, line 74
def compile_file_prism(path, options = nil)
  source = ::File.read(path, external_encoding: Encoding::UTF_8, internal_encoding: nil)
  compile_prism(source, path, path, nil, options)
end