class Wren::VM

Defined in:

wren/vm.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(config : Wren::Config = Config.new) #

[View source]

Instance Method Detail

def bind(klass) #

[View source]
def bind_class(klass : String, mod : String = "main", &block : LibWren::ForeignMethodFn) #

[View source]
def bind_method(klass : String, static? : Bool, signature : String, mod : String = "main", &block : LibWren::ForeignMethodFn) #

[View source]
def call(klass : String, signature : String, args = [] of Value, mod = "main") : Value #

[View source]
def call(handle : Pointer(LibWren::Handle), signature : String, args = [] of Value, static = false, mod = "main") : Value #

[View source]
def call(value : Value, signature : String, args = [] of Value, static = false, mod = "main") : Value #

[View source]
def config : Config #

[View source]
def construct(klass : String, signature : String, args = [] of Value, mod = "main") : Pointer(LibWren::Handle) #

[View source]
def finalize #

[View source]
def get_slot(slot : Int32) : Value #

[View source]
def interpret(mod : String = "main", & : Proc(String)) : LibWren::InterpretResult #

[View source]
def interpret(script : String, mod : String = "main") : LibWren::InterpretResult #

[View source]
def set_slot(slot : Int32, value : Value) #

[View source]
def set_slots(args : Array(Value), start : Int32 = 0) #

[View source]