Fork me on GitHub

hirb by cldwalker

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.


gem install hirb


Hirb provides a mini view framework for console applications and uses it to improve irb’s default inspect output. Given an object or array of objects, hirb renders a view based on the object’s class and/or ancestry. Hirb offers reusable views in the form of helper classes. The two main helpers, Hirb::Helpers::Table and Hirb::Helpers::Tree, provide several options for generating ascii tables and trees. Using Hirb::Helpers::AutoTable, hirb has useful default views for at least ten popular database gems i.e. Rails’ ActiveRecord::Base. Other than views, hirb offers a smart pager and a console menu. The smart pager only pages when the output exceeds the current screen size. The menu is used in conjunction with tables to offer two dimensional menus.

Read documentation.


You can download this project in either zip or tar formats, or clone the project with Git:

$ git clone git://


Issues, bugs, feature requests? Please report them on github.


Check out blog posts related to this project.




Gabriel Horner (gabriel.horner [AT]