November 2001
Intermediate to advanced
218 pages
6h 22m
English
ri is a
online reference tool developed by Dave Thomas, the famous pragmatic
programmer. When you have a question about the behavior of a certain
method, e.g., IO#gets, you can invoke
ri IO#gets to read the brief
explanation of the method. You can get ri from
http://www.pragmaticprogrammer.com/ruby/downloads/ri.html.
ri [ options ] [ name... ]
Here are the ri options:
--version,-v Displays version and exits.
--line-length=n-l nSets the line length for the output (minimum is 30 characters).
--synopsis-sDisplays just a synopsis.
--format=name-f nameUses the name module (default is
Plain) for output formatting. Here are the
available modules:
Simple tagged output
Default plain output
name should be specified in any of the
following forms:
Class
Class::method
Class#method
Class.method
method
Read now
Unlock full access