module Esperanto

Constants

VERSION

Public Class Methods

context() click to toggle source
# File lib/esperanto.rb, line 8
def context
  @context ||= ExecJS.compile(Source.bundled_source)
end
to_amd(code, options = {}) click to toggle source
# File lib/esperanto.rb, line 12
def to_amd(code, options = {})
  context.call('esperanto.toAmd', code, options)
end
to_cjs(code, options = {}) click to toggle source
# File lib/esperanto.rb, line 16
def to_cjs(code, options = {})
  context.call('esperanto.toCjs', code, options)
end
to_umd(code, options = {}) click to toggle source
# File lib/esperanto.rb, line 20
def to_umd(code, options = {})
  context.call('esperanto.toUmd', code, options)
end