---
title: "推荐一个 Ruby Console 插件"
author: "hozaka"
date: "2009-09-15T09:58:49Z"
tags: ["ActiveRecord", "MySQL", "Ruby", "Windows", "rubygems"]
slug: "ruby-console"
draft: false
lastmod: "2009-09-15T10:40:21Z"
id: 468830
url: "https://hozaka.iteye.com/blog/468830"
---

前几天在看 screencasts，发现一好插件：Hirb 。这是个扩展命令行的插件，可以以更加易读的形式展现方法返回的内容（比如以 mysql 输出的形式展现 ActiveRecord 实例）

 

```
gem install cldwalker-hirb --source http://gems.github.com/

# Append the following lines into ~/.irbrc
require 'rubygems'
require 'hirb'
Hirb::View.enable
```

 

![Screenshot of Hirb](http://blog.hozaka.com/wp-content/uploads/2009/09/hirb-screenshot.jpg)