module Anyolite::Preloader

Defined in:

Preloader.cr

Class Method Summary

Class Method Detail

def self.add_content(filename : String, bytes : Array(UInt8)) #

Caches the bytecode file filename


[View source]
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.


[View source]
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.


[View source]
def self.transform_script_to_bytecode_array(filename : String) #

Converts the Ruby script in filename to bytecode.


[View source]