class Wren::UserData

Defined in:

wren/user_data.cr

Instance Method Summary

Instance Method Detail

def call_handles : Hash(String, Pointer(LibWren::Handle)) #

[View source]
def call_handles=(call_handles : Hash(String, Pointer(LibWren::Handle))) #

[View source]
def class_bindings : Hash(String, Pointer(LibWren::Vm) -> Nil) #

[View source]
def class_bindings=(class_bindings : Hash(String, Pointer(LibWren::Vm) -> _)) #

[View source]
def class_sig(mod, klass) : String #

[View source]
def loaded_modules : Hash(String, String) #

[View source]
def method_bindings : Hash(String, Pointer(LibWren::Vm) -> Nil) #

[View source]
def method_bindings=(method_bindings : Hash(String, Pointer(LibWren::Vm) -> _)) #

[View source]
def method_sig(mod, klass, static, signature) : String #

[View source]
def module_dirs : Array(String) #

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

[View source]
def slot_handles : Hash(String, Pointer(LibWren::Handle)) #

[View source]
def slot_handles=(slot_handles : Hash(String, Pointer(LibWren::Handle))) #

[View source]
def vm : WeakRef(Wren::VM) | Nil #

[View source]
def vm=(vm : WeakRef(Wren::VM) | Nil) #

[View source]