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.



1176
1177
1178
# File 'lib/wardite.rb', line 1176

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

Instance Attribute Details

#mutableObject Also known as: mutable?

: bool



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

def mutable
  @mutable
end

#sharedObject Also known as: shared?

TODO: unused in wasm 1.0 spec?



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

def shared
  @shared
end

#typeObject

: Symbol



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

def type
  @type
end

#valueObject

: wasmValue



1172
1173
1174
# File 'lib/wardite.rb', line 1172

def value
  @value
end