Module: Extism

Defined in:
lib/extism.rb,
lib/extism/wasm.rb,
lib/extism/plugin.rb,
lib/extism/version.rb,
lib/extism/manifest.rb,
lib/extism/current_plugin.rb,
lib/extism/host_environment.rb

Defined Under Namespace

Modules: HostEnvironment, ValType Classes: CancelHandle, CurrentPlugin, Error, Function, Manifest, Memory, Plugin, Val

Constant Summary collapse

VERSION =
'1.0.0'

Class Method Summary collapse

Class Method Details

.extism_versionString

Return the version of Extism

Returns:

  • (String)

    The version string of the Extism runtime



18
19
20
# File 'lib/extism.rb', line 18

def self.extism_version
  LibExtism.extism_version
end

.set_log_file(name, level = nil) ⇒ Object

Set log file and level, this is a global configuration

Parameters:

  • name (String)

    The path to the logfile

  • level (String) (defaults to: nil)

    The log level. One of {“debug”, “error”, “info”, “trace” }



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

def self.set_log_file(name, level = nil)
  LibExtism.extism_log_file(name, level)
end