Class: Wardite::Global
- Inherits:
-
Object
- Object
- Wardite::Global
- Defined in:
- lib/wardite.rb
Instance Attribute Summary collapse
-
#mutable ⇒ Object
(also: #mutable?)
: bool.
-
#shared ⇒ Object
(also: #shared?)
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.
1169 1170 1171 |
# File 'lib/wardite.rb', line 1169 def initialize(&blk) blk.call(self) end |
Instance Attribute Details
#mutable ⇒ Object Also known as: mutable?
: bool
1160 1161 1162 |
# File 'lib/wardite.rb', line 1160 def mutable @mutable end |
#shared ⇒ Object Also known as:
TODO: unused in wasm 1.0 spec?
1163 1164 1165 |
# File 'lib/wardite.rb', line 1163 def shared @shared end |
#type ⇒ Object
: Symbol
1158 1159 1160 |
# File 'lib/wardite.rb', line 1158 def type @type end |
#value ⇒ Object
: wasmValue
1165 1166 1167 |
# File 'lib/wardite.rb', line 1165 def value @value end |