Class: WAG::Instruction::Local::Get
- Inherits:
-
Object
- Object
- WAG::Instruction::Local::Get
- Includes:
- WAG::Instructable
- Defined in:
- lib/wag/instructions/local/get.rb
Instance Attribute Summary collapse
-
#label ⇒ Object
readonly
Returns the value of attribute label.
Instance Method Summary collapse
-
#initialize(label) ⇒ Get
constructor
A new instance of Get.
- #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/get.rb', line 8 def label @label end |
Instance Method Details
#to_sexpr ⇒ Object
15 16 17 |
# File 'lib/wag/instructions/local/get.rb', line 15 def to_sexpr [name, label.to_sexpr] end |