From: James Britt Date: 2006-01-05T10:37:42+09:00 Subject: Re: using irb Timothy Hunter wrote: > John Maclean wrote: > >> So far I've created a ~/bin/rb/dev/foo directory as a place to write >> and test scripts. After reading the "pick axe" book some more it >> seems as is irb is a better "place" or "way" to try out stuff. This >> correct? > > > Many (perhaps most) Rubyists use irb to try out simple Ruby stuff. I > suspect you would agree. In any case it's easy enough for you to give it > a try and make up your own mind. I edit in gvim, with the Ruby menu and macro stuff, and it's trivial to edit something and press F5 to run the current file. If I end up with something memorable, it's already in a file, easy to rename, move, cay and paste, whatever. If your preferred editor is not fast-loading, though, then irb may better suit you. I tend not to use it much. James -- http://www.ruby-doc.org - Ruby Help & Documentation http://www.artima.com/rubycs/ - Ruby Code & Style: Writers wanted http://www.rubystuff.com - The Ruby Store for Ruby Stuff http://www.jamesbritt.com - Playing with Better Toys http://www.30secondrule.com - Building Better Tools