Class: ExecJS::Runtime

### Home Classes Methods

### In Files

- lib/execjs/runtime.rb

### Parent

Object

### Namespace

- CLASS ExecJS::Runtime::Context

### Methods

- #available?
- #compile
- #context_class
- #deprecated?
- #eval
- #exec
- #name

### Class/Module Index

Quicksearch

- ExecJS
- ExecJS::DisabledRuntime
- ExecJS::DuktapeRuntime
- ExecJS::DuktapeRuntime::Context
- ExecJS::Encoding
- ExecJS::Error
- ExecJS::ExternalRuntime
- ExecJS::ExternalRuntime::Context
- ExecJS::ProgramError
- ExecJS::RubyRacerRuntime
- ExecJS::RubyRacerRuntime::Context
- ExecJS::RubyRhinoRuntime
- ExecJS::RubyRhinoRuntime::Context
- ExecJS::Runtime
- ExecJS::Runtime::Context
- ExecJS::RuntimeError
- ExecJS::RuntimeUnavailable
- ExecJS::Runtimes

No matching classes.

# ExecJS::Runtime

Abstract base class for runtimes

### Public Instance Methods

available?() click to toggle source

    # File lib/execjs/runtime.rb, line 51
    def available?
      raise NotImplementedError
    end

compile(source) click to toggle source

    # File lib/execjs/runtime.rb, line 43
    def compile(source)
      context_class.new(self, source)
    end

context_class() click to toggle source

    # File lib/execjs/runtime.rb, line 29
    def context_class
      self.class::Context
    end

deprecated?() click to toggle source

    # File lib/execjs/runtime.rb, line 47
    def deprecated?
      false
    end

eval(source) click to toggle source

    # File lib/execjs/runtime.rb, line 38
    def eval(source)
      context = context_class.new(self)
      context.eval(source)
    end

exec(source) click to toggle source

    # File lib/execjs/runtime.rb, line 33
    def exec(source)
      context = context_class.new(self)
      context.exec(source)
    end

name() click to toggle source

    # File lib/execjs/runtime.rb, line 25
    def name
      raise NotImplementedError
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.