Class: Jot::Ruby::Js::Impl

Inherits:
ImplBase
  • Object
show all
Extended by:
Utils::Snippets
Includes:
ImplHelpers
Defined in:
lib/jot/ruby/js/impl.rb

Defined Under Namespace

Modules: ImplHelpers, OperationMethods

Class Method Summary collapse

Class Method Details

.runtimeObject



9
10
11
12
13
14
# File 'lib/jot/ruby/js/impl.rb', line 9

def runtime
  @runtime ||= begin
    source = File.read(File.join(gem_root, 'vendor/jot.js'))
    ExecJS.compile(source)
  end
end