推荐一个console插件

前几天在看 screencasts,发现一好插件:Hirb on Github.com。这是个扩展命令行的插件,可以以更加易读的形式展现方法返回的内容(比如以 mysql 输出的形式展现 ActiveRecord 实例)

gem install cldwalker-hirb --source http://gems.github.com/
# Append the following lines into ~/.irbrc

require 'rubygems'
require 'hirb' Hirb::View.enable

Comments

comments powered by Disqus