Sha256: d546f75aaab0762bff1d888e121018b8b7e91d1991412cbbdfed20da80e4839e

Contents?: true

Size: 565 Bytes

Versions: 22

Compression:

Stored size: 565 Bytes

Contents

Ruby.require("uri");
Ruby.require("open-uri");

function load() {
  for (var i = 0; i < arguments.length; ++i)
    Johnson.require(arguments[i]);
}

function print() {
  for (var i = 0; i < arguments.length; ++i)
    Ruby.puts(arguments[i]);
}

// NOTE: the Rhino version takes an optional encoding
function readFile(path) {
  return Ruby.IO.read(path);
}

// NOTE: the Rhino version takes an optional encoding
function readUrl(url) {
  return Ruby.URI.parse(url).read();
}

function quit() {
  Ruby.exit();
}

function version() {
  return Ruby.Johnson.VERSION;
}

Version data entries

22 entries across 22 versions & 4 rubygems

Version Path
jbarnette-johnson-1.0.0.200811251942 js/johnson/cli.js
jbarnette-johnson-1.0.0.20081126120511 js/johnson/cli.js
jbarnette-johnson-1.0.0.20090127202936 js/johnson/cli.js
jbarnette-johnson-1.0.0.20090225110820 js/johnson/cli.js
jbarnette-johnson-1.0.0.20090326122910 js/johnson/cli.js
jbarnette-johnson-1.0.0.20090326154650 js/johnson/cli.js
jbarnette-johnson-1.0.0.20090326161333 js/johnson/cli.js
jbarnette-johnson-1.0.0.20090402144841 js/johnson/cli.js
jbarnette-johnson-1.0.0.20090402155420 js/johnson/cli.js
pre-johnson-2.0.0 lib/johnson/js/cli.js
johnson-2.0.0.pre3 lib/johnson/js/cli.js
johnson-2.0.0.pre2 lib/johnson/js/cli.js
johnson-2.0.0.pre1 lib/johnson/js/cli.js
johnson-2.0.0.pre0 lib/johnson/js/cli.js
johnson-1.2.0 lib/johnson/js/cli.js
smparkes-johnson-1.1.2.6 lib/johnson/js/cli.js
smparkes-johnson-1.1.2.5 lib/johnson/js/cli.js
smparkes-johnson-1.1.2.4 lib/johnson/js/cli.js
smparkes-johnson-1.1.2.3 lib/johnson/js/cli.js
johnson-1.1.1 js/johnson/cli.js