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.



63
64
65
# File 'lib/wardite/load.rb', line 63

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

Instance Attribute Details

#mutableObject

: bool



54
55
56
# File 'lib/wardite/load.rb', line 54

def mutable
  @mutable
end

#sharedObject

TODO: unused in wasm 1.0 spec?



57
58
59
# File 'lib/wardite/load.rb', line 57

def shared
  @shared
end

#typeObject

: Symbol



52
53
54
# File 'lib/wardite/load.rb', line 52

def type
  @type
end

#valueObject

: I32|I64|F32|F64



59
60
61
# File 'lib/wardite/load.rb', line 59

def value
  @value
end