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.



1169
1170
1171
# File 'lib/wardite.rb', line 1169

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

Instance Attribute Details

#mutableObject Also known as: mutable?

: bool



1160
1161
1162
# File 'lib/wardite.rb', line 1160

def mutable
  @mutable
end

#sharedObject Also known as: shared?

TODO: unused in wasm 1.0 spec?



1163
1164
1165
# File 'lib/wardite.rb', line 1163

def shared
  @shared
end

#typeObject

: Symbol



1158
1159
1160
# File 'lib/wardite.rb', line 1158

def type
  @type
end

#valueObject

: wasmValue



1165
1166
1167
# File 'lib/wardite.rb', line 1165

def value
  @value
end