Class: Wardite::Global

Inherits:
Object
  • Object
show all
Defined in:
lib/wardite.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(&blk) ⇒ Global

Returns a new instance of Global.



1106
1107
1108
# File 'lib/wardite.rb', line 1106

def initialize(&blk)
  blk.call(self)
end

Instance Attribute Details

#mutableObject Also known as: mutable?

: bool



1097
1098
1099
# File 'lib/wardite.rb', line 1097

def mutable
  @mutable
end

#sharedObject Also known as: shared?

TODO: unused in wasm 1.0 spec?



1100
1101
1102
# File 'lib/wardite.rb', line 1100

def shared
  @shared
end

#typeObject

: Symbol



1095
1096
1097
# File 'lib/wardite.rb', line 1095

def type
  @type
end

#valueObject

: wasmValue



1102
1103
1104
# File 'lib/wardite.rb', line 1102

def value
  @value
end