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.
1141 1142 1143 |
# File 'lib/wardite.rb', line 1141 def initialize(&blk) blk.call(self) end |
Instance Attribute Details
#mutable ⇒ Object Also known as: mutable?
: bool
1132 1133 1134 |
# File 'lib/wardite.rb', line 1132 def mutable @mutable end |
#shared ⇒ Object Also known as:
TODO: unused in wasm 1.0 spec?
1135 1136 1137 |
# File 'lib/wardite.rb', line 1135 def shared @shared end |
#type ⇒ Object
: Symbol
1130 1131 1132 |
# File 'lib/wardite.rb', line 1130 def type @type end |
#value ⇒ Object
: wasmValue
1137 1138 1139 |
# File 'lib/wardite.rb', line 1137 def value @value end |