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.



1072
1073
1074
# File 'lib/wardite.rb', line 1072

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

Instance Attribute Details

#mutableObject Also known as: mutable?

: bool



1063
1064
1065
# File 'lib/wardite.rb', line 1063

def mutable
  @mutable
end

#sharedObject Also known as: shared?

TODO: unused in wasm 1.0 spec?



1066
1067
1068
# File 'lib/wardite.rb', line 1066

def shared
  @shared
end

#typeObject

: Symbol



1061
1062
1063
# File 'lib/wardite.rb', line 1061

def type
  @type
end

#valueObject

: wasmValue



1068
1069
1070
# File 'lib/wardite.rb', line 1068

def value
  @value
end