ri
(1)
Name
ri - Ruby API reference front end
Synopsis
ri [-Ti] [-d directory] [-f format] [--list-doc-dirs] [--no-
standard-docs] [--[no-]Bro system|site|gems|home Brc]
[--[no-]use-cache] [--width=width] [target ...]
Description
UNIX RI(1)
NAME
ri - Ruby API reference front end
SYNOPSIS
ri [-Ti] [-d directory] [-f format] [--list-doc-dirs] [--no-
standard-docs] [--[no-]Bro system|site|gems|home Brc]
[--[no-]use-cache] [--width=width] [target ...]
DESCRIPTION
ri is a CUI front end for the Ruby API reference. You can
search and read API reference for classes and methods with
ri is a part of Ruby.
target can be one of the following forms: It Class for
classes It Class::method for class methods It Class#method
for instance methods It Class.method for both class and
instance methods It method for both class and instance meth-
ods
All class names may be abbreviated to their minimum unam-
biguous form. If a name is ambiguous, all valid options will
be listed.
For example:
ri Fil
ri File
ri File.new
ri zip
Note that shell quoting may be required for method names
containing punctuation:
ri 'Array.[]'
ri compact
OPTIONS
--version
Prints the version of
-T
--no-pager
Send output directly to stdout, rather than to a pager.
-d directory
--doc-dir=directory
List of directories from which to source documentation
December 2Last0change: Ruby Programmers Reference Guide 1
UNIX RI(1)
in addition to the standard directories. May be
repeated.
-f FORMAT
--fmt FORMAT
--format=FORMAT
Format to use when displaying output:
Use 'bs' (backspace) with most pager programs. To use
ANSI, either disable the pager or tell the pager to
allow control characters.
-i
--interactive
This makes ri go into interactive mode.
When ri is in interactive mode it will allow the user
to disambiguate lists of methods in case multiple meth-
ods match against a method search string. It also will
allow the user to enter in a method name (with auto-
completion, if readline is supported) when viewing a
class.
--list-doc-dirs
List the directories from which ri will source documen-
tation on stdout and exit.
--no-standard-docs
Do not include documentation from the Ruby standard
library, site_lib, installed gems, or ~/.rdoc.
Equivalent to specifying the options --no-system,--no-
site,--no-gems, and --no-home.
--[no-]system
Include documentation from Ruby's standard library.
Defaults to true.
--[no-]site
Include documentation from libraries installed in
site_lib. Defaults to true.
December 2Last0change: Ruby Programmers Reference Guide 2
UNIX RI(1)
--[no-]gems
Include documentation from RubyGems. Defaults to true.
--[no-]home
Include documentation stored in ~/.rdoc. Defaults to
true.
--[no-]use-cache
Whether or not to use Ns
-w width
--width=width
Set the width of the output.
ENVIRONMENT
RI Additional options.
PAGER
Used as the name of pager program for displaying.
HOME
USERPROFILE
HOMEPATH
Path to user's home directory.
FILES
~/.ri
Caches recently referenced documents here.
~/.rdoc
Searches user-wide documents here.
ATTRIBUTES
See attributes(5) for descriptions of the following
attributes:
December 2Last0change: Ruby Programmers Reference Guide 3
UNIX RI(1)
+---------------+------------------+
|ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+---------------+------------------+
|Availability | runtime/ruby-19 |
+---------------+------------------+
|Stability | Uncommitted |
+---------------+------------------+
SEE ALSO
ruby(1) rdoc(1) gem(1)
REPORTING BUGS
Security vulnerabilities should be reported via an email to
<[email protected]> Reported problems will be published
after fixed.
And you can report other bugs and feature requests via the
Ruby Issue Tracking System (http://redmine.ruby-lang.org).
Do not report security vulnerabilities via the system
because it publishes the vulnerabilities immediately.
AUTHORS
Written by Dave Thomas <[email protected]>
NOTES
This software was built from source available at
https://java.net/projects/solaris-userland. The original
community source was downloaded from http://ftp.ruby-
lang.org/pub/ruby/1.9/ruby-1.9.3-p484.tar.gz
Further information about this software can be found on the
open source community website at http://www.ruby-lang.org/.
December 2Last0change: Ruby Programmers Reference Guide 4