class Object

Public Instance Methods

input_to_storage(source, path, *) click to toggle source
Calls superclass method
# File lib/ruby-next/language/bootsnap.rb, line 16
def input_to_storage(source, path, *)
  return super unless RubyNext::Language.transformable?(path)
  source = RubyNext::Language.transform(source, rewriters: RubyNext::Language.current_rewriters)

  RubyNext.debug_source(source, path)

  RubyVM::InstructionSequence.compile(source, path, path).to_binary
rescue SyntaxError
  raise Bootsnap::CompileCache::Uncompilable, "syntax error"
end
transform(contents, using: true, **hargs) click to toggle source
Calls superclass method
# File lib/ruby-next/core/runtime.rb, line 5
def transform(contents, using: true, **hargs)
  # We cannot activate refinements in eval
  new_contents = RubyNext::Core.inject!(contents) if using
  super(new_contents || contents, using: using, **hargs)
end