module Rubellite::Engine

Overview

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

Defined in:

rubellite/engine.cr

Class Method Summary

Class Method Detail

def self.[](const_name : String) : Value #

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


[View source]
def self.cleanup : Nil #

Gracefully cleans up and terminates the Ruby VM


[View source]
def self.eval(code : String) : Value #

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


[View source]
def self.init : Nil #

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


[View source]
def self.initialized? : Bool #

Returns true if the Ruby VM has been initialized


[View source]
def self.load(path : String) : Bool #

Loads a Ruby file path.


[View source]
def self.require(feature : String) : Bool #

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


[View source]