module Anyolite::Preloader
Defined in:
Preloader.crClass Method Summary
-
.add_content(filename : String, bytes : Array(UInt8))
Caches the bytecode file filename
-
.execute_bytecode_from_cache_or_file(rb : RbInterpreter, filename : String)
Executes the bytecode file filename in context of the
RbInterpreter
rb. -
.transform_script_to_bytecode(filename : String, target_filename : String)
Converts the Ruby script in filename to bytecode, which is then stored in target_filename.
-
.transform_script_to_bytecode_array(filename : String)
Converts the Ruby script in filename to bytecode.
Class Method Detail
def self.execute_bytecode_from_cache_or_file(rb : RbInterpreter, filename : String)
#
Executes the bytecode file filename in context of the RbInterpreter
rb.
If it was already cached, it will be taken from the cache instead.
def self.transform_script_to_bytecode(filename : String, target_filename : String)
#
Converts the Ruby script in filename to bytecode, which is then stored in target_filename.
def self.transform_script_to_bytecode_array(filename : String)
#
Converts the Ruby script in filename to bytecode.