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