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
: I32|I64|F32|F64.
Instance Method Summary collapse
-
#initialize(&blk) ⇒ Global
constructor
A new instance of Global.
Constructor Details
#initialize(&blk) ⇒ Global
Returns a new instance of Global.
726 727 728 |
# File 'lib/wardite.rb', line 726 def initialize(&blk) blk.call(self) end |
Instance Attribute Details
#mutable ⇒ Object Also known as: mutable?
: bool
717 718 719 |
# File 'lib/wardite.rb', line 717 def mutable @mutable end |
#shared ⇒ Object Also known as:
TODO: unused in wasm 1.0 spec?
720 721 722 |
# File 'lib/wardite.rb', line 720 def shared @shared end |
#type ⇒ Object
: Symbol
715 716 717 |
# File 'lib/wardite.rb', line 715 def type @type end |
#value ⇒ Object
: I32|I64|F32|F64
722 723 724 |
# File 'lib/wardite.rb', line 722 def value @value end |