Class: Wardite::GlobalSection::Global

Inherits:
Object
  • Object
show all
Defined in:
lib/wardite/load.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(&blk) ⇒ Global

Returns a new instance of Global.



80
81
82
# File 'lib/wardite/load.rb', line 80

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

Instance Attribute Details

#mutableObject

: bool



71
72
73
# File 'lib/wardite/load.rb', line 71

def mutable
  @mutable
end

#sharedObject

TODO: unused in wasm 1.0 spec?



74
75
76
# File 'lib/wardite/load.rb', line 74

def shared
  @shared
end

#typeObject

: Symbol



69
70
71
# File 'lib/wardite/load.rb', line 69

def type
  @type
end

#valueObject

: wasmValue



76
77
78
# File 'lib/wardite/load.rb', line 76

def value
  @value
end