Module: Wardite::WasmModule

Included in:
WasiSnapshotPreview1
Defined in:
lib/wardite/wasm_module.rb

Overview

@rbs!

type wasmModuleSrc = Hash[Symbol, _WasmCallable] | WasmModule | HashModule
type wasmModule    = WasmModule | HashModule

Instance Method Summary collapse

Instance Method Details

#callable(fnname) ⇒ Object



25
26
27
# File 'lib/wardite/wasm_module.rb', line 25

def callable(fnname)
  self.method(fnname)
end

#invoke(fnname, store, *args) ⇒ Object



19
20
21
# File 'lib/wardite/wasm_module.rb', line 19

def invoke(fnname, store, *args)
  self.__send__(fnname, store, args)
end