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