Re: ruby rookie needs help with "ri" command
Walter Lee Davis <[email protected]> Sun, 23 Jun 2019 17:05:48 -0400
| Newsgroups | gmane.comp.lang.ruby.general |
|---|---|
| Message-ID | <[email protected]> |
You have the option at install time to install the documentation (what ri reads from) or not. If your particular Ruby was installed with --no-ri --no-rdoc then there is nothing for it to read from. Personally, I use a desktop documentation reader called Dash (Mac only), and I am sure there are similar utilities available for Windows. There's also the full documentation available at https://ruby-lang.org And I just found this, which may as well have been written by you ;-) https://stackoverflow.com/questions/3178900/how-do-i-install-the-ruby-ri-documentation Walter > On Jun 23, 2019, at 5:07 PM, Barry Kimelman <[email protected]> wrote: > > I am a ruby rookie with a question > > I am running ruby 2.6.0p0 (2018-12-25 revision 66547) [x64-mingw32] > my laptop is windows 10 > > I was going through the PDF versionb of a ruby intro book and I have a question about the "ri" command. The PDF file shows the following examples > > ri Array > ri Array.sort > ri Hash#each > ri Math::sqrt > > But in each case I receive an error message of the form "Nothing known about xxx". Why is there no available info on these topics ? > > ================== > > Barry Kimelman > > Virus-free. www.avast.com > > Unsubscribe: <mailto:[email protected]?subject=unsubscribe> > <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk> Unsubscribe: <mailto:[email protected]?subject=unsubscribe> <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>