ri in irb

B

Brian Buckley

------=_Part_624_22348477.1114607153736
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

Hello all,=20

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 =3D>false.

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

Thanks

Brian
ruby 1.8.2, Windows XP

------=_Part_624_22348477.1114607153736--
 
J

Jason Foreman

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

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


Jason
 
B

Brian Buckley

------=_Part_637_6574801.1114609236504
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

That's it! Thank you.=20

Brian

------=_Part_637_6574801.1114609236504--
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top