class

Wren::VM

Inherits Reference < Object

Constructors

new(config : Wren::Config = Config.new)
Source

Instance methods

bind(klass)
Source
bind_class(klass : String, mod : String = "main", &block : LibWren::ForeignMethodFn)
Source
bind_method(klass : String, static? : Bool, signature : String, mod : String = "main", &block : LibWren::ForeignMethodFn)
Source
call(klass : String, signature : String, args = [] of Value, mod = "main") : Value
Source
call(handle : Pointer(LibWren::Handle), signature : String, args = [] of Value, static = false, mod = "main") : Value
Source
call(value : Value, signature : String, args = [] of Value, static = false, mod = "main") : Value
Source
config
Source
construct(klass : String, signature : String, args = [] of Value, mod = "main") : Pointer(LibWren::Handle)
Source
finalize
Source
get_slot(slot : Int32) : Value
Source
interpret(mod : String = "main", & : Proc(String)) : LibWren::InterpretResult
Source
interpret(script : String, mod : String = "main") : LibWren::InterpretResult
Source
set_slot(slot : Int32, value : Value)
Source
set_slots(args : Array(Value), start : Int32 = 0)
Source