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.



1174
1175
1176
# File 'lib/wardite.rb', line 1174

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

Instance Attribute Details

#mutableObject Also known as: mutable?

: bool



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

def mutable
  @mutable
end

#sharedObject Also known as: shared?

TODO: unused in wasm 1.0 spec?



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

def shared
  @shared
end

#typeObject

: Symbol



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

def type
  @type
end

#valueObject

: wasmValue



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

def value
  @value
end