module
Rubellite::Engine
Overview
Manages the embedded CRuby runtime lifecycle, script evaluation, library loading, and constant resolution.
Defined in:
rubellite/engine.crClass Method Summary
-
.[](const_name : String) : Value
Resolves a Ruby top-level constant (e.g.
-
.cleanup : Nil
Gracefully cleans up and terminates the Ruby VM
-
.eval(code : String) : Value
Evaluates a Ruby code snippet within the VM.
-
.init : Nil
Initializes the Ruby VM.
-
.initialized? : Bool
Returns true if the Ruby VM has been initialized
-
.load(path : String) : Bool
Loads a Ruby file path.
-
.require(feature : String) : Bool
Requires a Ruby feature/gem.
Class Method Detail
Resolves a Ruby top-level constant (e.g. "Math", "JSON", "Net::HTTP")
Evaluates a Ruby code snippet within the VM.
Raises Rubellite::Error if an exception occurs.
Initializes the Ruby VM. Safe to call multiple times (idempotent).
Requires a Ruby feature/gem. Returns true if loaded, false if already required.