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