class

Wren::UserData

Inherits Reference < Object

Instance methods

call_handles
Source
call_handles=(call_handles : Hash(String, Pointer(LibWren::Handle)))
Source
class_bindings
Source
class_bindings=(class_bindings : Hash(String, Pointer(LibWren::Vm) -> _))
Source
class_sig(mod, klass) : String
Source
loaded_modules
Source
method_bindings
Source
method_bindings=(method_bindings : Hash(String, Pointer(LibWren::Vm) -> _))
Source
method_sig(mod, klass, static, signature) : String
Source
module_dirs

Default module dirs are the current directory and the ./wren_modules folder at the root of this repo. Additional module dirs to search through can be added with:

vm = Wren::VM.new
vm.config.user_data.module_dirs << "path/to/new/module/dir"
# or
vm.config.user_data.module_dirs << Path["path", "to", "new", "module", "dir"].to_s
Source
slot_handles
Source
slot_handles=(slot_handles : Hash(String, Pointer(LibWren::Handle)))
Source
vm=(vm : WeakRef(Wren::VM) | Nil)
Source