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.
79 80 81 |
# File 'lib/wardite/load.rb', line 79 def initialize(&blk) blk.call(self) end |
Instance Attribute Details
#mutable ⇒ Object
: bool
70 71 72 |
# File 'lib/wardite/load.rb', line 70 def mutable @mutable end |
#shared ⇒ Object
TODO: unused in wasm 1.0 spec?
73 74 75 |
# File 'lib/wardite/load.rb', line 73 def shared @shared end |
#type ⇒ Object
: Symbol
68 69 70 |
# File 'lib/wardite/load.rb', line 68 def type @type end |
#value ⇒ Object
: wasmValue
75 76 77 |
# File 'lib/wardite/load.rb', line 75 def value @value end |