Class: Relaton::Un::Wasm::FuncRef

Inherits:
Struct
  • Object
show all
Defined in:
lib/relaton/un/wasm/interpreter.rb

Overview

A wasm function — module-defined or imported.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#codeObject

Returns the value of attribute code

Returns:

  • (Object)

    the current value of code



18
19
20
# File 'lib/relaton/un/wasm/interpreter.rb', line 18

def code
  @code
end

#kindObject

Returns the value of attribute kind

Returns:

  • (Object)

    the current value of kind



18
19
20
# File 'lib/relaton/un/wasm/interpreter.rb', line 18

def kind
  @kind
end

#procObject

Returns the value of attribute proc

Returns:

  • (Object)

    the current value of proc



18
19
20
# File 'lib/relaton/un/wasm/interpreter.rb', line 18

def proc
  @proc
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



18
19
20
# File 'lib/relaton/un/wasm/interpreter.rb', line 18

def type
  @type
end

Instance Method Details

#imported?Boolean

Returns:

  • (Boolean)


19
# File 'lib/relaton/un/wasm/interpreter.rb', line 19

def imported?; kind == :import; end