Module: Extism::HostEnvironment::ClassMethods
- Defined in:
- lib/extism/host_environment.rb
Instance Method Summary collapse
-
#register_import(func_name, parameters, returns) ⇒ Object
Register an import by name.
Instance Method Details
#register_import(func_name, parameters, returns) ⇒ Object
Register an import by name. You must know the wasm signature of the function to do this.
53 54 55 56 |
# File 'lib/extism/host_environment.rb', line 53 def register_import(func_name, parameters, returns) import_funcs = class_variable_get(:@@import_funcs) import_funcs << [func_name, parameters, returns] end |