Class: ExecJS::DisabledRuntime

### Home Classes Methods

### In Files

- lib/execjs/disabled_runtime.rb

### Parent

Runtime

### Methods

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

### Class/Module Index

Quicksearch

- ExecJS
- ExecJS::DisabledRuntime
- 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::DisabledRuntime

### Public Instance Methods

available?() click to toggle source

    # File lib/execjs/disabled_runtime.rb, line 25
    def available?
      true
    end

compile(source) click to toggle source

    # File lib/execjs/disabled_runtime.rb, line 17
    def compile(source)
      raise Error, "ExecJS disabled"
    end

deprecated?() click to toggle source

    # File lib/execjs/disabled_runtime.rb, line 21
    def deprecated?
      true
    end

eval(source) click to toggle source

    # File lib/execjs/disabled_runtime.rb, line 13
    def eval(source)
      raise Error, "ExecJS disabled"
    end

exec(source) click to toggle source

    # File lib/execjs/disabled_runtime.rb, line 9
    def exec(source)
      raise Error, "ExecJS disabled"
    end

name() click to toggle source

    # File lib/execjs/disabled_runtime.rb, line 5
    def name
      "Disabled"
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.