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.
1176 1177 1178 |
# File 'lib/wardite.rb', line 1176 def initialize(&blk) blk.call(self) end |
Instance Attribute Details
#mutable ⇒ Object Also known as: mutable?
: bool
1167 1168 1169 |
# File 'lib/wardite.rb', line 1167 def mutable @mutable end |
#shared ⇒ Object Also known as:
TODO: unused in wasm 1.0 spec?
1170 1171 1172 |
# File 'lib/wardite.rb', line 1170 def shared @shared end |
#type ⇒ Object
: Symbol
1165 1166 1167 |
# File 'lib/wardite.rb', line 1165 def type @type end |
#value ⇒ Object
: wasmValue
1172 1173 1174 |
# File 'lib/wardite.rb', line 1172 def value @value end |