Linux Commands Examples

A great documentation place for Linux commands

ri

Ruby Information at your fingertips

Synopsis

ri1.8 [options] [names...]


add an example, a script, a trick and tips

: email address (won't be displayed)
: name

Step 2

Thanks for this example ! - It will be moderated and published shortly.

Feel free to post other examples
Oops ! There is a tiny cockup. A damn 404 cockup. Please contact the loosy team who maintains and develops this wonderful site by clicking in the mighty feedback button on the side of the page. Say what happened. Thanks!

examples

0
source
            
alias ri='ri -f ansi'

description

ri1.8 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.8 File
ri1.8 File.new
ri1.8 F.n
ri1.8 zip

Note that shell quoting may be required for method names containing punctuation:
ri1.8 ’Array.[]’
ri1.8 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 ´bs’ (backspace) with most pager programs. To use ANSI, either also 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.8.

--help, -h

Display help.

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

How can this site be more helpful to YOU ?


give  feedback