Sha256: a5422e863b6b38a4e64420d90ab2ff03d73d280d8e1c69fba1f1d9cd0388a13d

Contents?: true

Size: 315 Bytes

Versions: 6

Compression:

Stored size: 315 Bytes

Contents

require 'ruby2js'
require 'execjs'

module Ruby2JS
  def self.compile(source, options={})
    ExecJS.compile(convert(source, options))
  end

  def self.eval(source, options={})
    ExecJS.eval(convert(source, options))
  end

  def self.exec(source, options={})
    ExecJS.exec(convert(source, options))
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
ruby2js-1.15.1 lib/ruby2js/execjs.rb
ruby2js-1.15.0 lib/ruby2js/execjs.rb
ruby2js-1.14.1 lib/ruby2js/execjs.rb
ruby2js-1.14.0 lib/ruby2js/execjs.rb
ruby2js-1.13.1 lib/ruby2js/execjs.rb
ruby2js-1.13.0 lib/ruby2js/execjs.rb