IRB from project


I am wondering how I can run IRB from the Ruby (not rails) project itself. Basically I want IRB to launch from the project base dir so I dont have to keep entering the full path to my classes i.e.

require "/Users/development/IdeaProjects/example"

Is there a step I am missing? Setting basedir in irb fails to solve the issue and I cant see where else I can configure IRB console....




IRB console is run with project content root as a working dir, so I guess the only problem may be caused by ruby 1.9. because it doesn't add current dir as a loadpath. You can see for possible workarounds


Please sign in to leave a comment.