Repository Overview
Module assert
-
- deepEqual(actual, expected)
- equal(actual, expected)
- fail(options)
- isFalse(val)
- isNaN(val)
- isNotNaN(val)
- isNotNull(val)
- isNotUndefined(val)
- isNull(val)
- isTrue(val)
- isUndefined(val)
- matches(value, expr)
- notDeepEqual(actual, expected)
- notEqual(actual, expected)
- notStrictEqual(actual, expected)
- ok(value)
- strictEqual(actual, expected)
- stringContains(value, pattern)
- throws(func, expectedError)
Class ArgumentsError(message)
Class AssertionError(options)
Module binary
Class Binary()
Class ByteArray(contentOrLength, [charset])
- concat(arg...)
- copy(start, end, target, targetOffset)
- decodeToString(encoding)
- every(callback, thisObj)
- filter(callback, thisObj)
- forEach(fn, thisObj)
- indexOf(sequence, start, stop)
- lastIndexOf(sequence, start, stop)
- map(callback, thisObj)
- pop()
- push(num...)
- reduce(callback, initialValue)
- reduceRight(callback, initialValue)
- reverse()
- shift()
- slice(begin, end)
- some(callback, thisObj)
- sort(comparator)
- splice(index, howMany, elements...)
- split(delimiter, options)
- toArray()
- toByteArray()
- toByteString()
- toString()
- unshift(num...)
- wrap(bytes)
- length
Class ByteString(content, charset)
- byteAt(offset)
- concat(arg...)
- copy(start, end, target, targetStart)
- decodeToString(charset)
- get(offset)
- indexOf(sequence, start, stop)
- lastIndexOf(sequence, start, stop)
- slice(begin, end)
- split(delimiter, options)
- toArray()
- toByteArray()
- toByteString()
- toString()
Class String()
- toByteArray(charset)
- toByteString(charset)
Module console
Module fs
-
- absolute(path)
- base(path, ext)
- canonical(path)
- changeGroup(path, group)
- changeOwner(path, group)
- changePermissions(path, permissions)
- changeWorkingDirectory(path)
- copy(from, to)
- copyTree(from, to)
- directory(path)
- exists(path)
- extension(path)
- group(path)
- hardLink(source, target)
- isAbsolute(path)
- isDirectory(path)
- isFile(path)
- isLink(path)
- isReadable(path)
- isRelative(path)
- isWritable(path)
- iterate(path)
- join()
- lastModified(path)
- list(path)
- listDirectoryTree(path)
- listTree(path)
- makeDirectory(path, permissions)
- makeTree(path)
- move(source, target)
- normal(path)
- open(path, options)
- openRaw(path, options, permissions)
- owner(path)
- path()
- permissions(path)
- read(path, options)
- readLink(path)
- relative(source, target)
- remove(path)
- removeDirectory(path)
- removeTree(path)
- resolve()
- same(pathA, pathB)
- sameFilesystem(pathA, pathB)
- size(path)
- split(path)
- symbolicLink(source, target)
- touch(path, mtime)
- workingDirectory()
- write(path, content, options)
Class Path()
Class Permissions(permissions, constructor)
Module globals
-
- addToClasspath(path)
- clearInterval(id)
- clearTimeout(id)
- defineClass(className)
- export(name...)
- gc()
- getRepository(path)
- getResource(path)
- include(moduleId)
- load(filename...)
- module.resolve(path)
- module.singleton(id, factory)
- print(arg...)
- privileged(func)
- quit()
- require(moduleId)
- seal(obj)
- setInterval(callback, delay, args)
- setTimeout(callback, delay, [args])
- spawn(func)
- sync(func, [obj])
- arguments
- console
- environment
- exports
- global
- module
- module.directory
- module.exports
- module.id
- module.path
- module.uri
- require.extensions
- require.main
- require.paths
Module io
Class MemoryStream(binaryOrNumber)
Class Stream()
Class TextStream(io, options, buflen)
Module net
Class DatagramSocket()
- bind(host, port)
- close()
- connect(host, port)
- disconnect()
- getTimeout()
- isBound()
- isClosed()
- isConnected()
- localAddress()
- receive(length, buffer)
- receiveFrom(length, buffer)
- remoteAddress()
- send(data)
- sendTo(host, port, data)
- setTimeout(timeout)
Class ServerSocket()
- accept()
- bind(host, port)
- close()
- getTimeout()
- isBound()
- isClosed()
- localAddress()
- setTimeout(timeout)
Class Socket()
- bind(host, port)
- close()
- connect(host, port, [timeout])
- getStream()
- getTimeout()
- isBound()
- isClosed()
- isConnected()
- localAddress()
- remoteAddress()
- setTimeout(timeout)
Module test
-
- getStackTrace(trace)
- getType(obj)
- jsDump(value, lvl)
- jsDump.indent(lvl)
- jsDump.quote(str)
- run(scope, name, writer)
Module ringo/args
Module ringo/base64
Module ringo/buffer
Module ringo/concurrent
Module ringo/daemon
Module ringo/encoding
Class Decoder(charset, strict, capacity)
Class Encoder(charset, strict, capacity)
- clear()
- close()
- encode(string, start, end)
- toByteArray()
- toByteString()
- toString()
- writeTo(sink)
- length
Module ringo/engine
-
- addHostObject(javaClass)
- addRepository(repo)
- addShutdownHook(funcOrObject, sync)
- asJavaObject(object)
- asJavaString(object)
- createSandbox(modulePath, globals, options)
- getCurrentWorker()
- getErrors()
- getOptimizationLevel()
- getRepositories()
- getRhinoContext()
- getRhinoEngine()
- getRingoHome()
- getWorker()
- setOptimizationLevel(level)
- version
Module ringo/events
Class EventEmitter()
- emit(type, [args...])
- listeners(type)
- on(type, listener)
- removeAllListeners(type)
- removeListener(type, listener)
Class JavaEventEmitter(classOrInterface, eventMapping)
- addListener(type, listener)
- addSyncListener(type, listener)
- emit(type, [args...])
- on(type, listener)
- removeListener(type, listener)
- impl
Module ringo/httpclient
Class BinaryPart(data, charset, filename)
Class Exchange(url, options, callbacks)
Class TextPart(data, charset, filename)
Module ringo/httpserver
Class Context()
- addServlet(servletPath, servlet, initParams)
- addWebSocket(path, onconnect)
- serveApplication(app, engine)
- serveStatic(dir)
Class Server(options)
- destroy()
- getContext(path, virtualHosts, options)
- getDefaultContext()
- getJetty()
- isRunning()
- start()
- stop()
Class WebSocket()
Module ringo/jsdoc
-
- parseResource(resource)
Class ScriptRepository(path)
- exists()
- getPath()
- getScriptResource(path)
- getScriptResources(nested)
Module ringo/logging
-
- getJavaStack(error, prefix)
- getLogger(name)
- getScriptStack(error, prefix)
- setConfig(resource, watchForUpdates)
Class Logger(name, impl)
- debug()
- error()
- info()
- isDebugEnabled()
- isErrorEnabled()
- isInfoEnabled()
- isTraceEnabled()
- isWarnEnabled()
- trace()
- warn()
Module ringo/markdown
-
- process(text, [extension])
Module ringo/mime
-
- mimeType(fileName, fallback)
- MIME_TYPES
Module ringo/mustache
Module ringo/parser
Module ringo/profiler
-
- profile(func, maxFrames)
Class Profiler()
- formatResult(maxFrames)
- getFrames()
- getScriptFrame(cx, script)
- toString()
Module ringo/promise
Module ringo/shell
-
- printError(xcept, verbose)
- printResult(value, writer)
- quit(status)
- read()
- readln(prompt, echoChar)
- start(engine)
- write()
- writeln()
Module ringo/subprocess
Module ringo/term
Module ringo/worker
Class Worker(moduleId)
- postMessage(data, [syncCallbacks])
- terminate()
Class WorkerPromise(moduleId, message)
Module ringo/zip
-
- ZipIterator(resource)
Class ZipFile(path)
Module ringo/jsgi/connector
-
- handleRequest(moduleId, functionObj, request)
Class AsyncResponse(request, timeout, autoflush)
Module ringo/jsgi/response
Module ringo/utils/arrays
Module ringo/utils/dates
-
- add(date, delta, unit)
- after(a, b)
- before(a, b)
- checkDate(fullYear, month, day)
- compare(a, b)
- dayOfYear(date)
- daysInFebruary(date)
- daysInMonth(date)
- daysInYear(date)
- diff(a, b, unit)
- firstDayOfWeek(locale)
- format(the, format, locale, timezone)
- fromUTCDate(year, month, date, hour, minute, second)
- inPeriod(date, periodStart, periodEnd, periodStartOpen, periodEndOpen)
- isLeapYear(date)
- overlapping(aStart, aEnd, bStart, bEnd)
- parse(str)
- quarterInFiscalYear(date, fiscalYearStart)
- quarterInYear(date)
- resetDate(date)
- resetTime(date)
- secondOfDay(date)
- toISOString(date, withTime, withTimeZone, withSeconds, withMilliseconds)
- weekOfMonth(date, locale)
- weekOfYear(date, locale)
- yearInCentury(date)
Module ringo/utils/files
-
- createTempFile(prefix, suffix, directory)
- isHidden(file)
- resolveId(parent, child)
- resolveUri(arbitrary)
- roots
- separator
Module ringo/utils/http
-
- BufferFactory(data, encoding)
- TempFileFactory(data, encoding)
- getMimeParameter(headerValue, paramName)
- isFileUpload(contentType)
- isUrlEncoded(contentType)
- mergeParameter(params, name, value)
- parseFileUpload(request, params, encoding, streamFactory)
- parseParameters(input, params, encoding)
- setCookie(key, value, days, options)
- urlEncode(object)
Class Headers(headers)
Class ResponseFilter(body, filter)
- forEach(fn)
Module ringo/utils/numbers
Module ringo/utils/objects
Module ringo/utils/strings
-
- Sorter(field, order)
- b16decode(str, encoding)
- b16encode(str, encoding)
- b64decode(string, encoding)
- b64encode(string, encoding)
- capitalize(the, amount)
- compose(one)
- contains(string, substring, fromIndex)
- count(string, pattern)
- digest(string, algorithm)
- endsWith(string, substring)
- entitize(string)
- escapeHtml(string)
- escapeRegExp(str)
- format(format)
- getCommonPrefix(str1, str2)
- group(string, interval, string, ignoreWhiteSpace)
- isAlpha(string)
- isAlphanumeric(string)
- isDateFormat(string)
- isEmail(string)
- isFileName(string)
- isHexColor(string)
- isNumeric(string)
- isUrl(string)
- join(the, the, the)
- pad(string, fill, length, mode)
- random(len, mode)
- repeat(string, num)
- startsWith(string, substring)
- stripTags(string)
- titleize(string)
- toAlphanumeric(string)
- toCamelCase(string)
- toDashes(string)
- toDate(string, format, timezone)
- toFileName(string)
- toHexColor(string)
- toUnderscores(string)
- unwrap(flag, replacement)