[][src]Module rosy::vm

Interacting with the Ruby VM directly.

Structs

DestroyError

An error indicating that destroy failed.

InitError

An error indicating that init failed.

InstrSeq

An instance of Ruby's RubyVM::InstructionSequence class.

Traits

EvalArgs

A type that can be used as one or more arguments for evaluating code within the context of a Mixin.

Functions

backtrace

Returns the current backtrace.

destroy

Destructs the Ruby VM, runs its finalization processes, and frees all resources used by it.

eval

Evaluates script in an isolated binding without handling exceptions.

eval_protected

Evaluates script in an isolated binding, returning an exception if one is raised.

eval_wrapped

Evaluates script under a module binding in an isolated binding, returning an exception if one is raised.

init

Initializes the Ruby VM, returning an error code if it failed.

init_load_path

Initializes the load path for require-ing gems.

load

Loads and executes the Ruby program file, without checking for exceptions.

load_protected

Loads and executes the Ruby program file.

require

Loads file with the current safe_level, without checking for exceptions.

require_protected

Loads file with the current safe_level.

require_with

Loads file with safe_level, without checking for exceptions.

require_with_protected

Loads file with safe_level.

safe_level

Returns Ruby's level of paranoia. This is equivalent to reading $SAFE.

set_safe_level

Sets Ruby's level of paranoia. The default value is 0.