Module: WAG::Encodable

Included in:
Data, Element, Export, Function, Global, Import, Instruction::Base, Label, Local, Memory, Module, Param, Result, Table, Then
Defined in:
lib/wag/encodable.rb

Overview

A simple mixin which formats s-expressions as WAT.

Instance Method Summary collapse

Instance Method Details

#to_wasmObject



10
11
12
# File 'lib/wag/encodable.rb', line 10

def to_wasm
  to_wat.to_wasm
end

#to_watObject



6
7
8
# File 'lib/wag/encodable.rb', line 6

def to_wat
  WAG::WAT.new(wat_encode(to_sexpr))
end