ri1.9(1)

ri1.91

Ruby information at your fingertips

Usage

ri1.9 [options] [names ...]

Overview

ri1.9 displaies information on Ruby classes, modules, and methods. You can give the names of classes or methods to see their documentation. Partial names may be given: if the names match more than one entity, a list will be shown, otherwise details on that entity will be displayed.

Nested classes and modules can be specified using the normal Name::Name notation, and instance methods can be distinguished from class methods using "." (or "#") instead of "::".

For example:

    ri1.9 File
    ri1.9 File.new
    ri1.9 F.n
    ri1.9 zip

Note that shell quoting may be required for method names containing punctuation:

    ri1.9 'Array.[]'
    ri1.9 compact\!

Options

--classes, -c

Display the names of classes and modules we know about.

--doc-dir, -d dirname

A directory to search for documentation. If not specified, we search the standard rdoc/ri directories.

--format, -f name

Format to use when displaying output: ansi, bs, html, plain, simple. Use the -T option, or tell your pager to allow control characters. (for example using the -R option to less.)

--list-names, -l

List all the names known to RDoc, one per line.

--no-pager, -T

Send output directly to stdout.

--width, -w width

Set the width of the output.

--version, -v

Display the version of ri1.9.

--help, -h

Display help.

Options may also be passed in the 'RI' environment variable

Releases

Unchanged in 2 releases since Debian 4.0 (Etch).

  1. 4.0–5.0

From ri1.9 1.9.0.2-9lenny1 in Debian 5.0 (Lenny). Parsed by carta from the page's man source.