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