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