load commands during irb startup

J

junkone

HI
There are the few commands that i always run from irb.
require 'watir'
...........

Can i load it automatically for me to save keystrokes. I can precieve
froms docs that i can, but not able to figure it out well

Seede
 
J

junkone

HI
I read that file. I am not sure how to configure it. can u provide an
example.
appreciate ur help

Where is my .irbrc. I cannot see it in my conf nor is there a file with
such a name in my c:\Ruby

Seede
 
R

Robert Klemme

HI
I read that file. I am not sure how to configure it. can u provide an
example.

You can simply put any ruby code in there including "require" statements.
appreciate ur help

Where is my .irbrc. I cannot see it in my conf nor is there a file with
such a name in my c:\Ruby

It's in your home directory. Since you didn't give the OS and Ruby
distribution I can't be more specific here.

Regards

robert


PS: Please don't top post.
 
J

junkone

HI. I have a windows xp os and my ruby version is
ruby 1.8.4 (2006-04-14) [i386-mswin32]

Ruby is installed in c:\ruby
 

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

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top