class Anyolite::RbInterpreter

Overview

Wrapper for an mruby state reference

NOTE Do not create more than one at a time!

Defined in:

RbInterpreter.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new #

[View source]

Class Method Detail

def self.create(&) #

[View source]

Instance Method Detail

def close #

[View source]
def define_class_method(name : String, c : RbClass | RbModule, proc : RbCore::RbFunc) #

[View source]
def define_method(name : String, c : RbClass | RbModule, proc : RbCore::RbFunc) #

TODO Use internal mruby arg count in future versions


[View source]
def define_module_function(name : String, mod : RbModule | RbClass, proc : RbCore::RbFunc) #

[View source]
def depth : UInt32 #

[View source]
def depth=(depth : UInt32) #

[View source]
def execute_bytecode(bytecode : Array(UInt8)) #

[View source]
def execute_script_line(str : String, clear_error : Bool = true) #

[View source]
def load_bytecode_from_file(filename : String) #

[View source]
def load_script_from_file(filename : String) #

[View source]
def to_unsafe #

[View source]