Hi,
I'm announcing Hirb, a mini view framework which enables script/
console to provide custom views.
Out of the box your activerecord objects come back as ascii tables.
You can also configure your tree-based models to return as ascii
trees:
Numeric
>-- Float
>-- Integer
> >-- Bignum
> `-- Fixnum
>-- Date::Infinity
`-- Rational
Thanks Phillip. Danimal, if you're using Hirb just for Rails, you can
add it in config/environment.rb and only have
it load when using script/console:
if $0 == 'irb'
require 'hirb'
Hirb::View.enable
end
Also, if you're using Wirble make sure to put Hirb::View.enable after
loading Wirble.