irbに補完機能をつける

こりゃーいい。

$ sudo gem install wirble
Password:
Successfully installed wirble-0.1.2
1 gem installed
Installing ri documentation for wirble-0.1.2...
Installing RDoc documentation for wirble-0.1.2...
$ cat >> ~/.irbrc
require 'rubygems'
require 'wirble'

Wirble.init
Wirble.colorize

$ irb
>> 'abc'.t
.taguri              .taint               .to_a                .to_i                .to_str              .to_yaml             .to_yaml_style       .tojis               .toutf16             .tr                  .tr_s                .type
.taguri=             .tainted?            .to_f                .to_s                .to_sym              .to_yaml_properties  .toeuc               .tosjis              .toutf8              .tr!                 .tr_s!
>> 'abc'.to
.to_a                .to_f                .to_i                .to_s                .to_str              .to_sym              .to_yaml             .to_yaml_properties  .to_yaml_style       .toeuc               .tojis               .tosjis              .toutf16             .toutf8
>> 'abc'.to_a
=> ["abc"]

wirbleを使うとirbの履歴保存や補完、結果の色付けができるようになるそうです。
READMEに色々書いてあるらしいけど、まだ読んでないので読んだらまた何か書くかもしれません。

でもirbだけでも履歴保存や補完ができるという都市伝説も聞いた気が。。。