Simple Questions on Ruby

1. How do you invoke a .rb file from the irb shell?

  You don't (I think). You run "ruby file.rb" from the command line.

4. Is there a Ruby IDE?

  There are lots! A few good ones are Mondrian, Komodo (not free but very cheap) and Eclipse with the ruby plugin. You should also find Scrite (right click and edit a ruby file in win explorer). I'm sure there will be lots of other recommendations from the mailing list. ( :

Hope I'm right and have given you some help! I'm new to ruby as well (about a week!). ( :

Ta,

Gem

···

********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************

> 1. How do you invoke a .rb file from the irb shell?
  You don't (I think). You run "ruby file.rb" from the command line.

Err, that's what one does to run an entire Ruby program from the command
line, but you can use "load" and "require" from within irb just as you
can from within a saved Ruby program.

> 4. Is there a Ruby IDE?
  There are lots! A few good ones are Mondrian, Komodo (not free but very cheap) and Eclipse with the ruby plugin. You should also find Scrite (right click and edit a ruby file in win explorer). I'm sure there will be lots of other recommendations from the mailing list. ( :

I'm not sure what you mean by "Scrite". I'm going to guess it's a typo,
and offer this correction:

Try SciTE. It's an excellent programming-oriented GUI text editor.
When I have to edit textfiles with a GUI application for some reason
(such as the rare occasion of having to use Windows), SciTE is my
favorite tool for the job. The rest of the time, I use Vim, of course.

···

On Fri, Aug 18, 2006 at 12:50:11AM +0900, Cameron, Gemma (UK) wrote:

--
CCD CopyWrite Chad Perrin [ http://ccd.apotheon.org ]
unix virus: If you're using a unixlike OS, please forward
this to 20 others and erase your system partition.