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.



726
727
728
# File 'lib/wardite.rb', line 726

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

Instance Attribute Details

#mutableObject Also known as: mutable?

: bool



717
718
719
# File 'lib/wardite.rb', line 717

def mutable
  @mutable
end

#sharedObject Also known as: shared?

TODO: unused in wasm 1.0 spec?



720
721
722
# File 'lib/wardite.rb', line 720

def shared
  @shared
end

#typeObject

: Symbol



715
716
717
# File 'lib/wardite.rb', line 715

def type
  @type
end

#valueObject

: I32|I64|F32|F64



722
723
724
# File 'lib/wardite.rb', line 722

def value
  @value
end