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.



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

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

Instance Attribute Details

#mutableObject

: bool



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

def mutable
  @mutable
end

#sharedObject

TODO: unused in wasm 1.0 spec?



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

def shared
  @shared
end

#typeObject

: Symbol



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

def type
  @type
end

#valueObject

: wasmValue



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

def value
  @value
end