Class: WAG::Instruction::Local::Set
- Inherits:
-
Object
- Object
- WAG::Instruction::Local::Set
- Includes:
- WAG::Instructable
- Defined in:
- lib/wag/instructions/local/set.rb
Instance Attribute Summary collapse
-
#label ⇒ Object
readonly
Returns the value of attribute label.
Instance Method Summary collapse
-
#initialize(label) ⇒ Set
constructor
A new instance of Set.
- #to_sexpr ⇒ Object
Methods included from WAG::Instructable
#f32, #f64, #i32, #i64, #local, #memory
Constructor Details
Instance Attribute Details
#label ⇒ Object (readonly)
Returns the value of attribute label.
8 9 10 |
# File 'lib/wag/instructions/local/set.rb', line 8 def label @label end |
Instance Method Details
#to_sexpr ⇒ Object
15 16 17 |
# File 'lib/wag/instructions/local/set.rb', line 15 def to_sexpr [name, label.to_sexpr] end |