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.
1154 1155 1156 |
# File 'lib/wardite.rb', line 1154 def initialize(&blk) blk.call(self) end |
Instance Attribute Details
#mutable ⇒ Object Also known as: mutable?
: bool
1145 1146 1147 |
# File 'lib/wardite.rb', line 1145 def mutable @mutable end |
#shared ⇒ Object Also known as:
TODO: unused in wasm 1.0 spec?
1148 1149 1150 |
# File 'lib/wardite.rb', line 1148 def shared @shared end |
#type ⇒ Object
: Symbol
1143 1144 1145 |
# File 'lib/wardite.rb', line 1143 def type @type end |
#value ⇒ Object
: wasmValue
1150 1151 1152 |
# File 'lib/wardite.rb', line 1150 def value @value end |