Class: Wardite::GlobalSection::Global
- Inherits:
-
Object
- Object
- Wardite::GlobalSection::Global
- Defined in:
- lib/wardite/load.rb
Instance Attribute Summary collapse
-
#mutable ⇒ Object
: bool.
-
#shared ⇒ Object
TODO: unused in wasm 1.0 spec?.
-
#type ⇒ Object
: Symbol.
-
#value ⇒ Object
: I32|I64|F32|F64.
Instance Method Summary collapse
-
#initialize(&blk) ⇒ Global
constructor
A new instance of Global.
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
#mutable ⇒ Object
: bool
54 55 56 |
# File 'lib/wardite/load.rb', line 54 def mutable @mutable end |
#shared ⇒ Object
TODO: unused in wasm 1.0 spec?
57 58 59 |
# File 'lib/wardite/load.rb', line 57 def shared @shared end |
#type ⇒ Object
: Symbol
52 53 54 |
# File 'lib/wardite/load.rb', line 52 def type @type end |
#value ⇒ Object
: I32|I64|F32|F64
59 60 61 |
# File 'lib/wardite/load.rb', line 59 def value @value end |