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?

This entry was posted in Code and tagged . Bookmark the permalink.

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.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">

Comments will be sent to the moderation queue.