module Sorbet::Eraser::Patch
Public Instance Methods
input_to_storage(contents, filepath)
click to toggle source
# File lib/sorbet/eraser/autoload.rb, line 12 def input_to_storage(contents, filepath) erased = Sorbet::Eraser.erase(contents) RubyVM::InstructionSequence.compile(erased, filepath, filepath).to_binary rescue SyntaxError raise ::Bootsnap::CompileCache::Uncompilable, "syntax error" end