Sha256: f3a00928089d0a7fe0c185ecd40cf9197a3b2e5a2d89b1809295ac209ca5dc45

Contents?: true

Size: 330 Bytes

Versions: 44

Compression:

Stored size: 330 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).to_s)
  end

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

Version data entries

44 entries across 44 versions & 1 rubygems

Version Path
ruby2js-2.1.24 lib/ruby2js/execjs.rb
ruby2js-2.1.23 lib/ruby2js/execjs.rb
ruby2js-2.1.22 lib/ruby2js/execjs.rb
ruby2js-2.1.21 lib/ruby2js/execjs.rb
ruby2js-2.1.20 lib/ruby2js/execjs.rb
ruby2js-2.1.19 lib/ruby2js/execjs.rb
ruby2js-2.1.18 lib/ruby2js/execjs.rb
ruby2js-2.1.17 lib/ruby2js/execjs.rb
ruby2js-2.1.16 lib/ruby2js/execjs.rb
ruby2js-2.1.15 lib/ruby2js/execjs.rb
ruby2js-2.1.14 lib/ruby2js/execjs.rb
ruby2js-2.1.13 lib/ruby2js/execjs.rb
ruby2js-2.1.12 lib/ruby2js/execjs.rb
ruby2js-2.1.11 lib/ruby2js/execjs.rb
ruby2js-2.1.10 lib/ruby2js/execjs.rb
ruby2js-2.1.9 lib/ruby2js/execjs.rb
ruby2js-2.1.8 lib/ruby2js/execjs.rb
ruby2js-2.1.7 lib/ruby2js/execjs.rb
ruby2js-2.1.6 lib/ruby2js/execjs.rb
ruby2js-2.1.5 lib/ruby2js/execjs.rb