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.



1154
1155
1156
# File 'lib/wardite.rb', line 1154

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

Instance Attribute Details

#mutableObject Also known as: mutable?

: bool



1145
1146
1147
# File 'lib/wardite.rb', line 1145

def mutable
  @mutable
end

#sharedObject Also known as: shared?

TODO: unused in wasm 1.0 spec?



1148
1149
1150
# File 'lib/wardite.rb', line 1148

def shared
  @shared
end

#typeObject

: Symbol



1143
1144
1145
# File 'lib/wardite.rb', line 1143

def type
  @type
end

#valueObject

: wasmValue



1150
1151
1152
# File 'lib/wardite.rb', line 1150

def value
  @value
end