Struct rurust::vm::VM [] [src]

pub struct VM;

A Ruby virtual machine.

Methods

impl VM
[src]

[src]

Creates a new Ruby VM.

[src]

Evaluates a line of code.

[src]

Evaluates a line of code in a sandbox.

Any variables defined will not be saved.

[src]

requires a file.

[src]

Creates a new class.

[src]

Creates a new module.

[src]

Sets the value of a global variable or creates a new one.

[src]

Gets the value of a global variable.

[src]

Sets a global constant.

[src]

Defines a global function.

[src]

Gets the current receiver (can be nil).

[src]

Raises an object and a message.

[src]

Raises a fatal error.

[src]

Raises a bug.

[src]

Logs a Ruby warning.

[src]

Prints Ruby version info to stdout.

Prints Ruby copyright info to stdout.

[src]

Sets the script name. Essentially the same as $0 = name.

[src]

Gets the currently raised exception and clears it.

[src]

Gets the currently raised exception exception.

Can be nil.

Trait Implementations

impl Drop for VM
[src]

[src]

Executes the destructor for this type. Read more