[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Re: invoke irb during execution of code

Yazmin Cardenas

6/4/2008 11:25:00 PM

What I say.. is why don=B4t any of you take my job offer seriously.... :(=
sniff.

LAET. Yazm=EDn M. C=E1rdenas Rubalcaba

Technical Recruiter



Phone 01 800 087 47 87 Ext 257

Local phone 1368 1745 Ext 257



Av. Mariano Otero 3225 Col. Verde Valle

C.P. 44540 Guadalajara, Jal. M=E9xico

www.pounceconsulting.com

e-mail. yazmin.cardenas@pounceconsulting.com

-----Original Message-----
From: Joel VanderWerf [mailto:vjoel@path.berkeley.edu]
Sent: Wednesday, June 04, 2008 6:10 PM
To: ruby-talk ML
Subject: Re: invoke irb during execution of code

Junkone wrote:
> thanks for trying to help. But i am lost with this code. do i have to
> call this code from my ruby code or should i call my ruby code from
> this code. any additional details would be very very useful.

Copy the module..end and class..end part into your code. Then look at
the stuff at the bottom. The simplest use is:

IRB.start_session(x)

where x is the object that will be "self" in the irb session. If you
want the user to be able to look at some local variables as well, use
the form with "binding" as the first argument.

--
vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407


No virus found in this incoming message.
Checked by AVG.
Version: 7.5.524 / Virus Database: 269.24.6/1480 - Release Date: 6/3/2008 7=
:00 AM


No virus found in this outgoing message.
Checked by AVG.
Version: 7.5.524 / Virus Database: 269.24.6/1480 - Release Date: 6/3/2008 7=
:00 AM