Quickie irb/console hints

Posted by Paul Haddad Fri, 21 Dec 2007 00:33:00 GMT

For some reason I’m not a big script/console user. Not really sure why but I normally either work with script/server or by running unit tests. However script/console and irb are useful tools, here are a few quick hints.

Wirble this gem adds in some really nice features to both irb and console. Specially nice are persistent history, color syntax highlighting and tab completion.

ri I have the web interfaces to rdoc and api.rubyrails.org bookmarked. However this can be more convenient. Just use ri classname or ri classname#methodname to get docs on an object. As a nice bonus Wirble adds in ri support to irb/console.

reload! should reload in all your model changes within console. This hopefully should reduce the number of times you have to exit out of console.

Tags , ,  | no comments

Comments

(leave url/email »)

   Preview comment