Class: Extism::Function
- Inherits:
-
Object
- Object
- Extism::Function
- Defined in:
- lib/extism/wasm.rb
Overview
Represents a host function. This is mostly for internal use and you should try to use HostEnvironment instead
Instance Method Summary collapse
-
#initialize(name, params, returns, func_proc, user_data: nil, on_free: nil) ⇒ Function
constructor
Create a new host function.
Constructor Details
#initialize(name, params, returns, func_proc, user_data: nil, on_free: nil) ⇒ Function
Create a new host function
75 76 77 78 79 80 81 82 |
# File 'lib/extism/wasm.rb', line 75 def initialize(name, params, returns, func_proc, user_data: nil, on_free: nil) @name = name @params = params @returns = returns @func = func_proc @user_data = user_data @on_free = on_free end |