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.
90af9c23c1d428b7f53b52b63f826021?d=identicon&s=25 Dave Miller (Guest)
on 2007-04-03 07: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
017e05d1a49ffa59ea03e149e7af720b?d=identicon&s=25 Chris Shea (chrisshea)
on 2007-04-03 07:25
(Received via mailing list)
On Apr 2, 11:14 pm, "Dave Miller" <> wrote:
> What am I doing wrong?
> Thanks
> Dave Miller

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

Welcome to Ruby.

1c0cd550766a3ee3e4a9c495926e4603?d=identicon&s=25 John Joyce (Guest)
on 2007-04-03 07: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!
D4d28bd014f9e7324bad99dcc3b0d390?d=identicon&s=25 Rich Morin (Guest)
on 2007-04-03 18:58
(Received via mailing list)
You might give this a try:

--            Rich Morin     +1 650-873-7841

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