How are you supposed to find stuff on Ruby Doc? I can't find navigate it at all.
This is cool. But I can't tell if it's showing documentation for Ruby 1.8 or 1.9?
2009-04-02 03:02:54
+4
A:
Use ri
, the command line tool:
% ri
ri v1.0.1 - 20041108
Usage:
ri [options] [names...]
Display information on Ruby classes, modules, and methods.
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:
ri File
ri File.new
ri F.n
ri zip
Note that shell quoting may be required for method names
containing punctuation:
ri 'Array.[]'
ri compact\!
For help on options, type 'ri -h'
For a list of classes I know about, type 'ri -c'
rampion
2009-04-02 01:56:15