Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

ri in irb

0 views
Skip to first unread message

Brian Buckley

unread,
Apr 27, 2005, 9:06:24 AM4/27/05
to
Hello all,

From p.191 of the pickaxe2 book, I put the following into my irb.rc file.

def ri(*names)
system(%{ri #{names.map {|name| name.to_s}.join(" ")}})
end

However, when I open an irb session and type, say,

ri Proc

I do not get the documentation I'm seeking, just a return =>false.

"ri Proc" works fine for me from a command line. Can anyone suggest what
might be wrong?

Thanks

Brian
ruby 1.8.2, Windows XP

Jason Foreman

unread,
Apr 27, 2005, 9:31:01 AM4/27/05
to

On windows it needs to be ri.bat, just like you should use irb.bat


Jason

Brian Buckley

unread,
Apr 27, 2005, 9:40:56 AM4/27/05
to
That's it! Thank you.

Brian

0 new messages