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.



1141
1142
1143
# File 'lib/wardite.rb', line 1141

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

Instance Attribute Details

#mutableObject Also known as: mutable?

: bool



1132
1133
1134
# File 'lib/wardite.rb', line 1132

def mutable
  @mutable
end

#sharedObject Also known as: shared?

TODO: unused in wasm 1.0 spec?



1135
1136
1137
# File 'lib/wardite.rb', line 1135

def shared
  @shared
end

#typeObject

: Symbol



1130
1131
1132
# File 'lib/wardite.rb', line 1130

def type
  @type
end

#valueObject

: wasmValue



1137
1138
1139
# File 'lib/wardite.rb', line 1137

def value
  @value
end