From: Jari Williamsson Date: 2008-02-24T21:18:20+09:00 Subject: Re: Netbeans with Ruby! Steve wrote: > Hope I`m ok posting a Netbeans query here?. I`m trying to learn Ruby > using the Netbeans IDE. It seems a pretty slick application but I`m > wondering if its possible to run a prog without creating a `new > project` each time?. I just want to be able to type in a few lines of > code and run it but it keeps running the `main project` which might be > an earlier prog I have written??. I`m sure the solution is staring me > in the face but would be grateful for any tips folk could provide. 2 alternatives: 1. Use IRB. If you're already in NetBeans, you can get to the built-in IRB by chosing "Window/Other/Ruby Shell (IRB)". Or you can use the MRI or JRuby versions of IRB. 2. Use a "scratch project" where you put your test code. (I have a source file where I constantly add snippets to the top with "exit" at the end of the code chunk. That way I can save old code chunks and reuse in a real project at a later date.) Best regards, Jari Williamsson