Sha256: a80d0586673309510c6a4d2e65da96169ed9b01decabe4a68748932e55cdefd9

Contents?: true

Size: 351 Bytes

Versions: 53

Compression:

Stored size: 351 Bytes

Contents

require 'ruby2js'
require 'execjs'

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

  def self.eval(source, options={})
    ExecJS.eval(convert(source, options.merge(strict: false)).to_s)
  end

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

Version data entries

53 entries across 53 versions & 1 rubygems

Version Path
ruby2js-3.0.12 lib/ruby2js/execjs.rb
ruby2js-3.0.11 lib/ruby2js/execjs.rb
ruby2js-3.0.10 lib/ruby2js/execjs.rb
ruby2js-3.0.9 lib/ruby2js/execjs.rb
ruby2js-3.0.8 lib/ruby2js/execjs.rb
ruby2js-3.0.7 lib/ruby2js/execjs.rb
ruby2js-3.0.6 lib/ruby2js/execjs.rb
ruby2js-3.0.5 lib/ruby2js/execjs.rb
ruby2js-3.0.4 lib/ruby2js/execjs.rb
ruby2js-3.0.3 lib/ruby2js/execjs.rb
ruby2js-3.0.2 lib/ruby2js/execjs.rb
ruby2js-3.0.1 lib/ruby2js/execjs.rb
ruby2js-3.0.0 lib/ruby2js/execjs.rb