Forum: Ruby Problem with ri or me?

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Dave Miller (Guest)
on 2007-04-03 09:16
(Received via mailing list)
Hello --

I just installed Ruby a couple of days ago, and I have been going
tutorials, etc.  One thing I can't explain is that ri doesn't seem to
on my system.  I am running Ruby 1.8.6 on XP.  I am trying to run ri
irb 0.9.5.  (Both things are what I got when I did the simple install a
days ago.)

If I enter ri, I get something like "undefined method `ri' for
from (irb):4"

What am I doing wrong?


Dave Miller
Chris S. (Guest)
on 2007-04-03 09:25
(Received via mailing list)
On Apr 2, 11:14 pm, "Dave Miller" <removed_email_address@domain.invalid> wrote:
> What am I doing wrong?
> Thanks
> Dave Miller

You run ri from the command line, not from within irb.

Welcome to Ruby.

John J. (Guest)
on 2007-04-03 09:41
(Received via mailing list)
ri is a command line tool.

I had the same confusion when I first got started!

In irb, you can type the object_name.methods
dot methods will give you a list of methods for the object.
This is a good thing to keep in mind. It's one example of why irb is
so useful. Rather than combing through documentation all the time,
you can ask the object directly!
Rich M. (Guest)
on 2007-04-03 20:58
(Received via mailing list)
You might give this a try:

--            Rich M.     removed_email_address@domain.invalid     +1 650-873-7841

Technical editing and writing, programming, and web development
This topic is locked and can not be replied to.