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.



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

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

Instance Attribute Details

#mutableObject

: bool



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

def mutable
  @mutable
end

#sharedObject

TODO: unused in wasm 1.0 spec?



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

def shared
  @shared
end

#typeObject

: Symbol



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

def type
  @type
end

#valueObject

: wasmValue



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

def value
  @value
end