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.



1124
1125
1126
# File 'lib/wardite.rb', line 1124

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

Instance Attribute Details

#mutableObject Also known as: mutable?

: bool



1115
1116
1117
# File 'lib/wardite.rb', line 1115

def mutable
  @mutable
end

#sharedObject Also known as: shared?

TODO: unused in wasm 1.0 spec?



1118
1119
1120
# File 'lib/wardite.rb', line 1118

def shared
  @shared
end

#typeObject

: Symbol



1113
1114
1115
# File 'lib/wardite.rb', line 1113

def type
  @type
end

#valueObject

: wasmValue



1120
1121
1122
# File 'lib/wardite.rb', line 1120

def value
  @value
end