class WAG::WAT
A container for the WebAssembly text format.
Public Class Methods
new(source)
click to toggle source
# File lib/wag/wat.rb, line 6 def initialize(source) @source = source end
Public Instance Methods
to_s()
click to toggle source
# File lib/wag/wat.rb, line 14 def to_s @source end
to_wasm()
click to toggle source
# File lib/wag/wat.rb, line 10 def to_wasm WAG::WASM.new(WAG::WABT.new.wat2wasm(@source)) end