part of the family
beyond corporate purpose


09 Dec 2009

A couple of weeks ago I watched the RailsCast on Searchlogic and saw Ryan use some gem called Hirb. It looked interesting for sure, so I wrote it down to check it out to completely forget about it.

Until yesterday.

What is Hirb?

A mini view framework for console/irb that’s easy to use, even while under its influence. Console goodies include a no-wrap table, auto-pager, tree and menu.

OK. What does that mean?

It improves irb’s default output a lot. And by a lot, I mean, A. LOT.

Hirb example

In case you like it, you might want to set it up to autoload in script/console for all your Rails projects. In order to do so, add the following to your ~/.irbrc file:

  require 'rubygems'
  require 'hirb'


blog comments powered by Disqus