A console for any Ruby project

I’ve been finding this little snippet extremely useful lately:

$ irb -Ilib -rmy_library

If your Ruby app or library follows the idiom of requiring all the files for your app in a file named after the library, this will load everything up. If you're being clever, you may need to invoke said cleverness before you can really get started poking around.

Anyone doing something similar?

One response to “A console for any Ruby project”

  1. I’ve been using a (heavily) doctored-up Utility Belt (http://utilitybelt.rubyforge.org/ and gem install utility-belt) for a while now, if that can be considered equivalent.