Sign in Sign up
rubygems

hirb

Hirb provides a mini view framework for console applications and uses it to improve ripl(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.

Activity

Latest release
11y ago
Total releases
31
Cadence
~38 days
Last 12 months
0

Details

License
MIT
First release
Mar 23, 2009
Releases
Version Released
0.7.3 patch
0.7.2 patch
0.7.1 patch
0.7.0 minor
0.6.2 patch
0.6.1 patch
0.6.0 minor
0.5.0 minor
0.4.4 patch
0.4.5 patch
0.4.3 patch
0.4.2 patch
0.4.1 patch
0.4.0 minor
0.3.6 patch
0.3.5 patch
0.3.4 patch
0.3.3 patch
0.3.2 patch
0.3.1 patch
0.3.0 minor
0.2.10 patch
0.2.9 patch
0.2.8 patch
0.2.7 patch
0.2.6 patch
0.2.5 patch
0.2.4 patch
0.2.3 patch
0.2.2 minor
0.1.2 initial