module

Rubellite::Engine

Manages the embedded CRuby runtime lifecycle, script evaluation, library loading, and constant resolution.

Class methods

[](const_name : String) : Value

Resolves a Ruby top-level constant (e.g. "Math", "JSON", "Net::HTTP")

Source
cleanup

Gracefully cleans up and terminates the Ruby VM

Source
eval(code : String) : Value

Evaluates a Ruby code snippet within the VM. Raises Rubellite::Error if an exception occurs.

Source
init

Initializes the Ruby VM. Safe to call multiple times (idempotent).

Source
initialized?

Returns true if the Ruby VM has been initialized

Source
load(path : String) : Bool

Loads a Ruby file path.

Source
require(feature : String) : Bool

Requires a Ruby feature/gem. Returns true if loaded, false if already required.

Source