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
: wasmValue.
Instance Method Summary collapse
-
#initialize(&blk) ⇒ Global
constructor
A new instance of Global.
Constructor Details
#initialize(&blk) ⇒ Global
Returns a new instance of Global.
80 81 82 |
# File 'lib/wardite/load.rb', line 80 def initialize(&blk) blk.call(self) end |
Instance Attribute Details
#mutable ⇒ Object
: bool
71 72 73 |
# File 'lib/wardite/load.rb', line 71 def mutable @mutable end |
#shared ⇒ Object
TODO: unused in wasm 1.0 spec?
74 75 76 |
# File 'lib/wardite/load.rb', line 74 def shared @shared end |
#type ⇒ Object
: Symbol
69 70 71 |
# File 'lib/wardite/load.rb', line 69 def type @type end |
#value ⇒ Object
: wasmValue
76 77 78 |
# File 'lib/wardite/load.rb', line 76 def value @value end |