Sha256: 0b622b491fd55cfd744731d93393aa1178426796dd38415e528fd430f98d6a36

Contents?: true

Size: 945 Bytes

Versions: 15

Compression:

Stored size: 945 Bytes

Contents

module Opal
  # `Opal::CliRunners` is the namespace in which JavaScript runners can be
  # defined for use by `Opal::CLI`. The API for classes defined under
  # `CliRunners` is the following.
  #
  # - The #initialize method takes an `Hash` containing an `output:` object.
  #   Additional keys can be safely ignored and can be specific to a particular
  #   runner, e.g. the `CliRunners::Server` runner will accepts a `port:`
  #   option.
  # - The runner instance will then be called via `#run(compiled_source, argv)`:
  #   - `compiled_source` is a string of JavaScript code
  #   - `argv` is the arguments vector coming from the CLI that is being
  #     forwarded to the program
  #
  module CliRunners
    class RunnerError < StandardError
    end
  end
end

require 'opal/cli_runners/applescript'
require 'opal/cli_runners/phantomjs'
require 'opal/cli_runners/nodejs'
require 'opal/cli_runners/server'
require 'opal/cli_runners/nashorn'

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
opal-0.10.6 lib/opal/cli_runners.rb
opal-0.10.6.beta lib/opal/cli_runners.rb
opal-0.10.5 lib/opal/cli_runners.rb
opal-0.10.4 lib/opal/cli_runners.rb
opal-0.10.3 lib/opal/cli_runners.rb
opal-0.10.2 lib/opal/cli_runners.rb
opal-0.10.1 lib/opal/cli_runners.rb
opal-0.10.0 lib/opal/cli_runners.rb
opal-0.10.0.rc2 lib/opal/cli_runners.rb
opal-0.10.0.rc1 lib/opal/cli_runners.rb
opal-0.10.0.beta5 lib/opal/cli_runners.rb
opal-0.10.0.beta4 lib/opal/cli_runners.rb
opal-0.10.0.beta3 lib/opal/cli_runners.rb
opal-0.10.0.beta2 lib/opal/cli_runners.rb
opal-0.10.0.beta1 lib/opal/cli_runners.rb