class WAG::Instruction::BrTable
Attributes
label[R]
Public Class Methods
new(*labels)
click to toggle source
# File lib/wag/instructions/br_table.rb, line 9 def initialize(*labels) @labels = labels.map { |label| WAG::Label.from(label) } end
Public Instance Methods
to_sexpr()
click to toggle source
# File lib/wag/instructions/br_table.rb, line 13 def to_sexpr [name].concat(@labels.map(&:to_sexpr)) end